stripe 4.10.0 → 5.55.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 +316 -1
- data/CODE_OF_CONDUCT.md +77 -0
- data/Gemfile +10 -14
- data/Makefile +7 -0
- data/README.md +186 -62
- data/Rakefile +8 -7
- data/VERSION +1 -1
- data/lib/stripe/api_operations/create.rb +1 -1
- data/lib/stripe/api_operations/delete.rb +28 -2
- data/lib/stripe/api_operations/list.rb +1 -12
- data/lib/stripe/api_operations/nested_resource.rb +38 -28
- data/lib/stripe/api_operations/request.rb +81 -9
- data/lib/stripe/api_operations/save.rb +8 -7
- data/lib/stripe/api_operations/search.rb +19 -0
- data/lib/stripe/api_resource.rb +45 -3
- 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 +31 -10
- data/lib/stripe/instrumentation.rb +84 -0
- data/lib/stripe/list_object.rb +41 -7
- data/lib/stripe/multipart_encoder.rb +131 -0
- data/lib/stripe/oauth.rb +8 -6
- data/lib/stripe/object_types.rb +119 -0
- data/lib/stripe/{account.rb → resources/account.rb} +48 -30
- data/lib/stripe/{account_link.rb → resources/account_link.rb} +2 -1
- data/lib/stripe/resources/alipay_account.rb +34 -0
- data/lib/stripe/{apple_pay_domain.rb → resources/apple_pay_domain.rb} +2 -1
- data/lib/stripe/resources/application_fee.rb +14 -0
- data/lib/stripe/resources/application_fee_refund.rb +31 -0
- data/lib/stripe/{balance.rb → resources/balance.rb} +2 -1
- data/lib/stripe/{balance_transaction.rb → resources/balance_transaction.rb} +2 -5
- data/lib/stripe/resources/bank_account.rb +43 -0
- data/lib/stripe/{issuing/dispute.rb → resources/billing_portal/configuration.rb} +4 -3
- data/lib/stripe/resources/billing_portal/session.rb +12 -0
- data/lib/stripe/{bitcoin_receiver.rb → resources/bitcoin_receiver.rb} +4 -3
- data/lib/stripe/resources/bitcoin_transaction.rb +16 -0
- data/lib/stripe/resources/capability.rb +34 -0
- data/lib/stripe/{card.rb → resources/card.rb} +13 -4
- data/lib/stripe/resources/cash_balance.rb +22 -0
- data/lib/stripe/resources/charge.rb +32 -0
- data/lib/stripe/resources/checkout/session.rb +27 -0
- data/lib/stripe/{country_spec.rb → resources/country_spec.rb} +2 -1
- data/lib/stripe/{coupon.rb → resources/coupon.rb} +3 -2
- data/lib/stripe/resources/credit_note.rb +33 -0
- data/lib/stripe/resources/credit_note_line_item.rb +8 -0
- data/lib/stripe/resources/customer.rb +74 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +31 -0
- data/lib/stripe/resources/discount.rb +8 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/{ephemeral_key.rb → resources/ephemeral_key.rb} +6 -2
- data/lib/stripe/{event.rb → resources/event.rb} +2 -1
- data/lib/stripe/{exchange_rate.rb → resources/exchange_rate.rb} +2 -1
- data/lib/stripe/resources/file.rb +36 -0
- data/lib/stripe/{file_link.rb → resources/file_link.rb} +3 -2
- data/lib/stripe/resources/financial_connections/account.rb +31 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +10 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +10 -0
- data/lib/stripe/resources/financial_connections/session.rb +12 -0
- 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 +83 -0
- data/lib/stripe/{invoice_item.rb → resources/invoice_item.rb} +3 -2
- data/lib/stripe/{invoice_line_item.rb → resources/invoice_line_item.rb} +2 -1
- data/lib/stripe/resources/issuing/authorization.rb +34 -0
- data/lib/stripe/resources/issuing/card.rb +25 -0
- data/lib/stripe/resources/issuing/card_details.rb +10 -0
- data/lib/stripe/{issuing → resources/issuing}/cardholder.rb +3 -2
- data/lib/stripe/resources/issuing/dispute.rb +25 -0
- data/lib/stripe/{issuing → resources/issuing}/transaction.rb +3 -2
- data/lib/stripe/resources/line_item.rb +8 -0
- data/lib/stripe/resources/login_link.rb +15 -0
- data/lib/stripe/resources/mandate.rb +8 -0
- data/lib/stripe/resources/order.rb +33 -0
- data/lib/stripe/{order_return.rb → resources/order_return.rb} +2 -1
- data/lib/stripe/resources/payment_intent.rb +82 -0
- data/lib/stripe/resources/payment_link.rb +23 -0
- data/lib/stripe/resources/payment_method.rb +33 -0
- data/lib/stripe/resources/payout.rb +33 -0
- data/lib/stripe/{person.rb → resources/person.rb} +9 -3
- data/lib/stripe/{plan.rb → resources/plan.rb} +2 -1
- data/lib/stripe/resources/price.rb +21 -0
- data/lib/stripe/resources/product.rb +22 -0
- 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 +12 -0
- data/lib/stripe/{radar → resources/radar}/value_list.rb +3 -2
- data/lib/stripe/{radar → resources/radar}/value_list_item.rb +3 -2
- data/lib/stripe/{recipient.rb → resources/recipient.rb} +3 -6
- data/lib/stripe/{recipient_transfer.rb → resources/recipient_transfer.rb} +1 -1
- data/lib/stripe/resources/refund.rb +42 -0
- data/lib/stripe/{reporting → resources/reporting}/report_run.rb +3 -2
- data/lib/stripe/{reporting → resources/reporting}/report_type.rb +3 -2
- data/lib/stripe/resources/reversal.rb +30 -0
- data/lib/stripe/resources/review.rb +21 -0
- data/lib/stripe/resources/setup_attempt.rb +10 -0
- data/lib/stripe/resources/setup_intent.rb +43 -0
- data/lib/stripe/{product.rb → resources/shipping_rate.rb} +4 -4
- data/lib/stripe/{sigma → resources/sigma}/scheduled_query_run.rb +3 -2
- data/lib/stripe/{sku.rb → resources/sku.rb} +4 -3
- data/lib/stripe/resources/source.rb +47 -0
- data/lib/stripe/{source_transaction.rb → resources/source_transaction.rb} +2 -1
- data/lib/stripe/resources/subscription.rb +35 -0
- data/lib/stripe/resources/subscription_item.rb +26 -0
- data/lib/stripe/resources/subscription_schedule.rb +33 -0
- data/lib/stripe/resources/tax_code.rb +10 -0
- data/lib/stripe/resources/tax_id.rb +27 -0
- data/lib/stripe/{refund.rb → resources/tax_rate.rb} +3 -2
- data/lib/stripe/{terminal/reader.rb → resources/terminal/configuration.rb} +3 -2
- data/lib/stripe/resources/terminal/connection_token.rb +12 -0
- data/lib/stripe/{terminal → resources/terminal}/location.rb +3 -2
- data/lib/stripe/resources/terminal/reader.rb +75 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +25 -0
- data/lib/stripe/{three_d_secure.rb → resources/three_d_secure.rb} +2 -1
- data/lib/stripe/{token.rb → resources/token.rb} +2 -1
- data/lib/stripe/resources/topup.rb +23 -0
- data/lib/stripe/resources/transfer.rb +27 -0
- data/lib/stripe/resources/usage_record.rb +8 -0
- data/lib/stripe/{usage_record_summary.rb → resources/usage_record_summary.rb} +2 -1
- data/lib/stripe/{webhook_endpoint.rb → resources/webhook_endpoint.rb} +3 -2
- data/lib/stripe/resources.rb +100 -0
- data/lib/stripe/search_result_object.rb +86 -0
- data/lib/stripe/singleton_api_resource.rb +3 -1
- data/lib/stripe/stripe_client.rb +661 -266
- data/lib/stripe/stripe_configuration.rb +194 -0
- data/lib/stripe/stripe_object.rb +80 -61
- data/lib/stripe/stripe_response.rb +87 -27
- data/lib/stripe/util.rb +128 -117
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +43 -10
- data/lib/stripe.rb +46 -197
- data/stripe.gemspec +24 -8
- metadata +123 -283
- data/.gitattributes +0 -4
- data/.github/ISSUE_TEMPLATE.md +0 -5
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -32
- data/.rubocop_todo.yml +0 -50
- data/.travis.yml +0 -42
- data/lib/stripe/alipay_account.rb +0 -27
- data/lib/stripe/application_fee.rb +0 -23
- data/lib/stripe/application_fee_refund.rb +0 -22
- data/lib/stripe/bank_account.rb +0 -32
- data/lib/stripe/bitcoin_transaction.rb +0 -15
- data/lib/stripe/charge.rb +0 -84
- data/lib/stripe/checkout/session.rb +0 -11
- data/lib/stripe/customer.rb +0 -90
- data/lib/stripe/dispute.rb +0 -19
- data/lib/stripe/file.rb +0 -37
- data/lib/stripe/invoice.rb +0 -48
- data/lib/stripe/issuer_fraud_record.rb +0 -9
- data/lib/stripe/issuing/authorization.rb +0 -22
- data/lib/stripe/issuing/card.rb +0 -18
- data/lib/stripe/issuing/card_details.rb +0 -9
- data/lib/stripe/login_link.rb +0 -11
- data/lib/stripe/order.rb +0 -31
- data/lib/stripe/payment_intent.rb +0 -26
- data/lib/stripe/payment_method.rb +0 -23
- data/lib/stripe/payout.rb +0 -20
- data/lib/stripe/reversal.rb +0 -22
- data/lib/stripe/review.rb +0 -14
- data/lib/stripe/source.rb +0 -38
- data/lib/stripe/subscription.rb +0 -25
- data/lib/stripe/subscription_item.rb +0 -17
- data/lib/stripe/subscription_schedule.rb +0 -32
- data/lib/stripe/subscription_schedule_revision.rb +0 -25
- data/lib/stripe/terminal/connection_token.rb +0 -11
- data/lib/stripe/topup.rb +0 -16
- data/lib/stripe/transfer.rb +0 -23
- data/lib/stripe/usage_record.rb +0 -14
- data/test/api_stub_helpers.rb +0 -1
- data/test/openapi/README.md +0 -9
- data/test/stripe/account_external_accounts_operations_test.rb +0 -69
- data/test/stripe/account_link_test.rb +0 -18
- data/test/stripe/account_login_links_operations_test.rb +0 -21
- data/test/stripe/account_persons_operations_test.rb +0 -70
- data/test/stripe/account_test.rb +0 -256
- data/test/stripe/alipay_account_test.rb +0 -37
- data/test/stripe/api_operations_test.rb +0 -81
- data/test/stripe/api_resource_test.rb +0 -526
- data/test/stripe/apple_pay_domain_test.rb +0 -33
- data/test/stripe/application_fee_refund_test.rb +0 -37
- data/test/stripe/application_fee_refunds_operations_test.rb +0 -56
- data/test/stripe/application_fee_test.rb +0 -14
- data/test/stripe/balance_test.rb +0 -13
- data/test/stripe/bank_account_test.rb +0 -36
- data/test/stripe/charge_test.rb +0 -59
- 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 -51
- data/test/stripe/customer_card_test.rb +0 -42
- data/test/stripe/customer_sources_operations_test.rb +0 -64
- data/test/stripe/customer_test.rb +0 -115
- data/test/stripe/dispute_test.rb +0 -42
- data/test/stripe/ephemeral_key_test.rb +0 -86
- 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 -73
- data/test/stripe/file_upload_test.rb +0 -76
- data/test/stripe/invoice_item_test.rb +0 -55
- data/test/stripe/invoice_line_item_test.rb +0 -8
- data/test/stripe/invoice_test.rb +0 -161
- data/test/stripe/issuer_fraud_record_test.rb +0 -20
- data/test/stripe/issuing/authorization_test.rb +0 -50
- data/test/stripe/issuing/card_test.rb +0 -53
- 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 -57
- data/test/stripe/payment_intent_test.rb +0 -80
- data/test/stripe/payment_method_test.rb +0 -66
- data/test/stripe/payout_test.rb +0 -50
- data/test/stripe/person_test.rb +0 -46
- data/test/stripe/plan_test.rb +0 -92
- data/test/stripe/product_test.rb +0 -49
- data/test/stripe/radar/value_list_item_test.rb +0 -38
- data/test/stripe/radar/value_list_test.rb +0 -51
- data/test/stripe/recipient_test.rb +0 -49
- 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/sigma/scheduled_query_run_test.rb +0 -22
- data/test/stripe/sku_test.rb +0 -50
- data/test/stripe/source_test.rb +0 -86
- data/test/stripe/source_transaction_test.rb +0 -19
- data/test/stripe/stripe_client_test.rb +0 -823
- 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 -53
- data/test/stripe/subscription_schedule_revision_test.rb +0 -37
- data/test/stripe/subscription_schedule_revisions_operations_test.rb +0 -35
- data/test/stripe/subscription_schedule_test.rb +0 -64
- data/test/stripe/subscription_test.rb +0 -60
- data/test/stripe/terminal/connection_token_test.rb +0 -16
- data/test/stripe/terminal/location_test.rb +0 -58
- data/test/stripe/terminal/reader_test.rb +0 -52
- data/test/stripe/three_d_secure_test.rb +0 -23
- data/test/stripe/topup_test.rb +0 -54
- data/test/stripe/transfer_reversals_operations_test.rb +0 -57
- data/test/stripe/transfer_test.rb +0 -43
- 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 -42
- 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 -73
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.55.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-05-05 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,200 +18,154 @@ executables:
|
|
46
18
|
extensions: []
|
47
19
|
extra_rdoc_files: []
|
48
20
|
files:
|
49
|
-
- ".gitattributes"
|
50
|
-
- ".github/ISSUE_TEMPLATE.md"
|
51
|
-
- ".gitignore"
|
52
|
-
- ".rubocop.yml"
|
53
|
-
- ".rubocop_todo.yml"
|
54
|
-
- ".travis.yml"
|
55
21
|
- CHANGELOG.md
|
22
|
+
- CODE_OF_CONDUCT.md
|
56
23
|
- CONTRIBUTORS
|
57
24
|
- Gemfile
|
58
25
|
- History.txt
|
59
26
|
- LICENSE
|
27
|
+
- Makefile
|
60
28
|
- README.md
|
61
29
|
- Rakefile
|
62
30
|
- VERSION
|
63
31
|
- bin/stripe-console
|
64
32
|
- lib/data/ca-certificates.crt
|
65
33
|
- lib/stripe.rb
|
66
|
-
- lib/stripe/account.rb
|
67
|
-
- lib/stripe/account_link.rb
|
68
|
-
- lib/stripe/alipay_account.rb
|
69
34
|
- lib/stripe/api_operations/create.rb
|
70
35
|
- lib/stripe/api_operations/delete.rb
|
71
36
|
- lib/stripe/api_operations/list.rb
|
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
|
76
|
-
- lib/stripe/
|
77
|
-
- lib/stripe/
|
78
|
-
- lib/stripe/
|
79
|
-
- lib/stripe/balance.rb
|
80
|
-
- lib/stripe/balance_transaction.rb
|
81
|
-
- lib/stripe/bank_account.rb
|
82
|
-
- lib/stripe/bitcoin_receiver.rb
|
83
|
-
- lib/stripe/bitcoin_transaction.rb
|
84
|
-
- lib/stripe/card.rb
|
85
|
-
- lib/stripe/charge.rb
|
86
|
-
- lib/stripe/checkout/session.rb
|
87
|
-
- lib/stripe/country_spec.rb
|
88
|
-
- lib/stripe/coupon.rb
|
89
|
-
- lib/stripe/customer.rb
|
90
|
-
- lib/stripe/dispute.rb
|
91
|
-
- lib/stripe/ephemeral_key.rb
|
42
|
+
- lib/stripe/api_resource_test_helpers.rb
|
43
|
+
- lib/stripe/connection_manager.rb
|
44
|
+
- lib/stripe/error_object.rb
|
92
45
|
- lib/stripe/errors.rb
|
93
|
-
- lib/stripe/
|
94
|
-
- lib/stripe/exchange_rate.rb
|
95
|
-
- lib/stripe/file.rb
|
96
|
-
- lib/stripe/file_link.rb
|
97
|
-
- lib/stripe/invoice.rb
|
98
|
-
- lib/stripe/invoice_item.rb
|
99
|
-
- lib/stripe/invoice_line_item.rb
|
100
|
-
- lib/stripe/issuer_fraud_record.rb
|
101
|
-
- lib/stripe/issuing/authorization.rb
|
102
|
-
- lib/stripe/issuing/card.rb
|
103
|
-
- lib/stripe/issuing/card_details.rb
|
104
|
-
- lib/stripe/issuing/cardholder.rb
|
105
|
-
- lib/stripe/issuing/dispute.rb
|
106
|
-
- lib/stripe/issuing/transaction.rb
|
46
|
+
- lib/stripe/instrumentation.rb
|
107
47
|
- lib/stripe/list_object.rb
|
108
|
-
- lib/stripe/
|
48
|
+
- lib/stripe/multipart_encoder.rb
|
109
49
|
- lib/stripe/oauth.rb
|
110
|
-
- lib/stripe/
|
111
|
-
- lib/stripe/
|
112
|
-
- lib/stripe/
|
113
|
-
- lib/stripe/
|
114
|
-
- lib/stripe/
|
115
|
-
- lib/stripe/
|
116
|
-
- lib/stripe/
|
117
|
-
- lib/stripe/
|
118
|
-
- lib/stripe/
|
119
|
-
- lib/stripe/
|
120
|
-
- lib/stripe/
|
121
|
-
- lib/stripe/
|
122
|
-
- lib/stripe/
|
123
|
-
- lib/stripe/
|
124
|
-
- lib/stripe/
|
125
|
-
- lib/stripe/
|
126
|
-
- lib/stripe/
|
127
|
-
- lib/stripe/
|
50
|
+
- lib/stripe/object_types.rb
|
51
|
+
- lib/stripe/resources.rb
|
52
|
+
- lib/stripe/resources/account.rb
|
53
|
+
- lib/stripe/resources/account_link.rb
|
54
|
+
- lib/stripe/resources/alipay_account.rb
|
55
|
+
- lib/stripe/resources/apple_pay_domain.rb
|
56
|
+
- lib/stripe/resources/application_fee.rb
|
57
|
+
- lib/stripe/resources/application_fee_refund.rb
|
58
|
+
- lib/stripe/resources/balance.rb
|
59
|
+
- lib/stripe/resources/balance_transaction.rb
|
60
|
+
- lib/stripe/resources/bank_account.rb
|
61
|
+
- lib/stripe/resources/billing_portal/configuration.rb
|
62
|
+
- lib/stripe/resources/billing_portal/session.rb
|
63
|
+
- lib/stripe/resources/bitcoin_receiver.rb
|
64
|
+
- lib/stripe/resources/bitcoin_transaction.rb
|
65
|
+
- lib/stripe/resources/capability.rb
|
66
|
+
- lib/stripe/resources/card.rb
|
67
|
+
- lib/stripe/resources/cash_balance.rb
|
68
|
+
- lib/stripe/resources/charge.rb
|
69
|
+
- lib/stripe/resources/checkout/session.rb
|
70
|
+
- lib/stripe/resources/country_spec.rb
|
71
|
+
- lib/stripe/resources/coupon.rb
|
72
|
+
- lib/stripe/resources/credit_note.rb
|
73
|
+
- lib/stripe/resources/credit_note_line_item.rb
|
74
|
+
- lib/stripe/resources/customer.rb
|
75
|
+
- lib/stripe/resources/customer_balance_transaction.rb
|
76
|
+
- lib/stripe/resources/discount.rb
|
77
|
+
- lib/stripe/resources/dispute.rb
|
78
|
+
- lib/stripe/resources/ephemeral_key.rb
|
79
|
+
- lib/stripe/resources/event.rb
|
80
|
+
- lib/stripe/resources/exchange_rate.rb
|
81
|
+
- lib/stripe/resources/file.rb
|
82
|
+
- lib/stripe/resources/file_link.rb
|
83
|
+
- lib/stripe/resources/financial_connections/account.rb
|
84
|
+
- lib/stripe/resources/financial_connections/account_owner.rb
|
85
|
+
- lib/stripe/resources/financial_connections/account_ownership.rb
|
86
|
+
- lib/stripe/resources/financial_connections/session.rb
|
87
|
+
- lib/stripe/resources/funding_instructions.rb
|
88
|
+
- lib/stripe/resources/identity/verification_report.rb
|
89
|
+
- lib/stripe/resources/identity/verification_session.rb
|
90
|
+
- lib/stripe/resources/invoice.rb
|
91
|
+
- lib/stripe/resources/invoice_item.rb
|
92
|
+
- lib/stripe/resources/invoice_line_item.rb
|
93
|
+
- lib/stripe/resources/issuing/authorization.rb
|
94
|
+
- lib/stripe/resources/issuing/card.rb
|
95
|
+
- lib/stripe/resources/issuing/card_details.rb
|
96
|
+
- lib/stripe/resources/issuing/cardholder.rb
|
97
|
+
- lib/stripe/resources/issuing/dispute.rb
|
98
|
+
- lib/stripe/resources/issuing/transaction.rb
|
99
|
+
- lib/stripe/resources/line_item.rb
|
100
|
+
- lib/stripe/resources/login_link.rb
|
101
|
+
- lib/stripe/resources/mandate.rb
|
102
|
+
- lib/stripe/resources/order.rb
|
103
|
+
- lib/stripe/resources/order_return.rb
|
104
|
+
- lib/stripe/resources/payment_intent.rb
|
105
|
+
- lib/stripe/resources/payment_link.rb
|
106
|
+
- lib/stripe/resources/payment_method.rb
|
107
|
+
- lib/stripe/resources/payout.rb
|
108
|
+
- lib/stripe/resources/person.rb
|
109
|
+
- lib/stripe/resources/plan.rb
|
110
|
+
- lib/stripe/resources/price.rb
|
111
|
+
- lib/stripe/resources/product.rb
|
112
|
+
- lib/stripe/resources/promotion_code.rb
|
113
|
+
- lib/stripe/resources/quote.rb
|
114
|
+
- lib/stripe/resources/radar/early_fraud_warning.rb
|
115
|
+
- lib/stripe/resources/radar/value_list.rb
|
116
|
+
- lib/stripe/resources/radar/value_list_item.rb
|
117
|
+
- lib/stripe/resources/recipient.rb
|
118
|
+
- lib/stripe/resources/recipient_transfer.rb
|
119
|
+
- lib/stripe/resources/refund.rb
|
120
|
+
- lib/stripe/resources/reporting/report_run.rb
|
121
|
+
- lib/stripe/resources/reporting/report_type.rb
|
122
|
+
- lib/stripe/resources/reversal.rb
|
123
|
+
- lib/stripe/resources/review.rb
|
124
|
+
- lib/stripe/resources/setup_attempt.rb
|
125
|
+
- lib/stripe/resources/setup_intent.rb
|
126
|
+
- lib/stripe/resources/shipping_rate.rb
|
127
|
+
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
128
|
+
- lib/stripe/resources/sku.rb
|
129
|
+
- lib/stripe/resources/source.rb
|
130
|
+
- lib/stripe/resources/source_transaction.rb
|
131
|
+
- lib/stripe/resources/subscription.rb
|
132
|
+
- lib/stripe/resources/subscription_item.rb
|
133
|
+
- lib/stripe/resources/subscription_schedule.rb
|
134
|
+
- lib/stripe/resources/tax_code.rb
|
135
|
+
- lib/stripe/resources/tax_id.rb
|
136
|
+
- lib/stripe/resources/tax_rate.rb
|
137
|
+
- lib/stripe/resources/terminal/configuration.rb
|
138
|
+
- lib/stripe/resources/terminal/connection_token.rb
|
139
|
+
- lib/stripe/resources/terminal/location.rb
|
140
|
+
- lib/stripe/resources/terminal/reader.rb
|
141
|
+
- lib/stripe/resources/test_helpers/test_clock.rb
|
142
|
+
- lib/stripe/resources/three_d_secure.rb
|
143
|
+
- lib/stripe/resources/token.rb
|
144
|
+
- lib/stripe/resources/topup.rb
|
145
|
+
- lib/stripe/resources/transfer.rb
|
146
|
+
- lib/stripe/resources/usage_record.rb
|
147
|
+
- lib/stripe/resources/usage_record_summary.rb
|
148
|
+
- lib/stripe/resources/webhook_endpoint.rb
|
149
|
+
- lib/stripe/search_result_object.rb
|
128
150
|
- lib/stripe/singleton_api_resource.rb
|
129
|
-
- lib/stripe/sku.rb
|
130
|
-
- lib/stripe/source.rb
|
131
|
-
- lib/stripe/source_transaction.rb
|
132
151
|
- lib/stripe/stripe_client.rb
|
152
|
+
- lib/stripe/stripe_configuration.rb
|
133
153
|
- lib/stripe/stripe_object.rb
|
134
154
|
- lib/stripe/stripe_response.rb
|
135
|
-
- lib/stripe/subscription.rb
|
136
|
-
- lib/stripe/subscription_item.rb
|
137
|
-
- lib/stripe/subscription_schedule.rb
|
138
|
-
- lib/stripe/subscription_schedule_revision.rb
|
139
|
-
- lib/stripe/terminal/connection_token.rb
|
140
|
-
- lib/stripe/terminal/location.rb
|
141
|
-
- lib/stripe/terminal/reader.rb
|
142
|
-
- lib/stripe/three_d_secure.rb
|
143
|
-
- lib/stripe/token.rb
|
144
|
-
- lib/stripe/topup.rb
|
145
|
-
- lib/stripe/transfer.rb
|
146
|
-
- lib/stripe/usage_record.rb
|
147
|
-
- lib/stripe/usage_record_summary.rb
|
148
155
|
- lib/stripe/util.rb
|
149
156
|
- lib/stripe/version.rb
|
150
157
|
- lib/stripe/webhook.rb
|
151
|
-
- lib/stripe/webhook_endpoint.rb
|
152
158
|
- stripe.gemspec
|
153
|
-
|
154
|
-
- test/openapi/README.md
|
155
|
-
- test/stripe/account_external_accounts_operations_test.rb
|
156
|
-
- test/stripe/account_link_test.rb
|
157
|
-
- test/stripe/account_login_links_operations_test.rb
|
158
|
-
- test/stripe/account_persons_operations_test.rb
|
159
|
-
- test/stripe/account_test.rb
|
160
|
-
- test/stripe/alipay_account_test.rb
|
161
|
-
- test/stripe/api_operations_test.rb
|
162
|
-
- test/stripe/api_resource_test.rb
|
163
|
-
- test/stripe/apple_pay_domain_test.rb
|
164
|
-
- test/stripe/application_fee_refund_test.rb
|
165
|
-
- test/stripe/application_fee_refunds_operations_test.rb
|
166
|
-
- test/stripe/application_fee_test.rb
|
167
|
-
- test/stripe/balance_test.rb
|
168
|
-
- test/stripe/bank_account_test.rb
|
169
|
-
- test/stripe/charge_test.rb
|
170
|
-
- test/stripe/checkout/session_test.rb
|
171
|
-
- test/stripe/country_spec_test.rb
|
172
|
-
- test/stripe/coupon_test.rb
|
173
|
-
- test/stripe/customer_card_test.rb
|
174
|
-
- test/stripe/customer_sources_operations_test.rb
|
175
|
-
- test/stripe/customer_test.rb
|
176
|
-
- test/stripe/dispute_test.rb
|
177
|
-
- test/stripe/ephemeral_key_test.rb
|
178
|
-
- test/stripe/errors_test.rb
|
179
|
-
- test/stripe/exchange_rate_test.rb
|
180
|
-
- test/stripe/file_link_test.rb
|
181
|
-
- test/stripe/file_test.rb
|
182
|
-
- test/stripe/file_upload_test.rb
|
183
|
-
- test/stripe/invoice_item_test.rb
|
184
|
-
- test/stripe/invoice_line_item_test.rb
|
185
|
-
- test/stripe/invoice_test.rb
|
186
|
-
- test/stripe/issuer_fraud_record_test.rb
|
187
|
-
- test/stripe/issuing/authorization_test.rb
|
188
|
-
- test/stripe/issuing/card_test.rb
|
189
|
-
- test/stripe/issuing/cardholder_test.rb
|
190
|
-
- test/stripe/issuing/dispute_test.rb
|
191
|
-
- test/stripe/issuing/transaction_test.rb
|
192
|
-
- test/stripe/list_object_test.rb
|
193
|
-
- test/stripe/login_link_test.rb
|
194
|
-
- test/stripe/oauth_test.rb
|
195
|
-
- test/stripe/order_return_test.rb
|
196
|
-
- test/stripe/order_test.rb
|
197
|
-
- test/stripe/payment_intent_test.rb
|
198
|
-
- test/stripe/payment_method_test.rb
|
199
|
-
- test/stripe/payout_test.rb
|
200
|
-
- test/stripe/person_test.rb
|
201
|
-
- test/stripe/plan_test.rb
|
202
|
-
- test/stripe/product_test.rb
|
203
|
-
- test/stripe/radar/value_list_item_test.rb
|
204
|
-
- test/stripe/radar/value_list_test.rb
|
205
|
-
- test/stripe/recipient_test.rb
|
206
|
-
- test/stripe/refund_test.rb
|
207
|
-
- test/stripe/reporting/report_run_test.rb
|
208
|
-
- test/stripe/reporting/report_type_test.rb
|
209
|
-
- test/stripe/reversal_test.rb
|
210
|
-
- test/stripe/review_test.rb
|
211
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
212
|
-
- test/stripe/sku_test.rb
|
213
|
-
- test/stripe/source_test.rb
|
214
|
-
- test/stripe/source_transaction_test.rb
|
215
|
-
- test/stripe/stripe_client_test.rb
|
216
|
-
- test/stripe/stripe_object_test.rb
|
217
|
-
- test/stripe/stripe_response_test.rb
|
218
|
-
- test/stripe/subscription_item_test.rb
|
219
|
-
- test/stripe/subscription_schedule_revision_test.rb
|
220
|
-
- test/stripe/subscription_schedule_revisions_operations_test.rb
|
221
|
-
- test/stripe/subscription_schedule_test.rb
|
222
|
-
- test/stripe/subscription_test.rb
|
223
|
-
- test/stripe/terminal/connection_token_test.rb
|
224
|
-
- test/stripe/terminal/location_test.rb
|
225
|
-
- test/stripe/terminal/reader_test.rb
|
226
|
-
- test/stripe/three_d_secure_test.rb
|
227
|
-
- test/stripe/topup_test.rb
|
228
|
-
- test/stripe/transfer_reversals_operations_test.rb
|
229
|
-
- test/stripe/transfer_test.rb
|
230
|
-
- test/stripe/usage_record_summary_test.rb
|
231
|
-
- test/stripe/usage_record_test.rb
|
232
|
-
- test/stripe/util_test.rb
|
233
|
-
- test/stripe/webhook_endpoint_test.rb
|
234
|
-
- test/stripe/webhook_test.rb
|
235
|
-
- test/stripe_mock.rb
|
236
|
-
- test/stripe_test.rb
|
237
|
-
- test/test_data.rb
|
238
|
-
- test/test_helper.rb
|
239
|
-
homepage: https://stripe.com/docs/api/ruby
|
159
|
+
homepage: https://stripe.com/docs/api?lang=ruby
|
240
160
|
licenses:
|
241
161
|
- MIT
|
242
|
-
metadata:
|
162
|
+
metadata:
|
163
|
+
bug_tracker_uri: https://github.com/stripe/stripe-ruby/issues
|
164
|
+
changelog_uri: https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md
|
165
|
+
documentation_uri: https://stripe.com/docs/api?lang=ruby
|
166
|
+
github_repo: ssh://github.com/stripe/stripe-ruby
|
167
|
+
homepage_uri: https://stripe.com/docs/api?lang=ruby
|
168
|
+
source_code_uri: https://github.com/stripe/stripe-ruby
|
243
169
|
post_install_message:
|
244
170
|
rdoc_options: []
|
245
171
|
require_paths:
|
@@ -248,101 +174,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
174
|
requirements:
|
249
175
|
- - ">="
|
250
176
|
- !ruby/object:Gem::Version
|
251
|
-
version: 2.
|
177
|
+
version: 2.3.0
|
252
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
253
179
|
requirements:
|
254
180
|
- - ">="
|
255
181
|
- !ruby/object:Gem::Version
|
256
182
|
version: '0'
|
257
183
|
requirements: []
|
258
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.3.7
|
259
185
|
signing_key:
|
260
186
|
specification_version: 4
|
261
187
|
summary: Ruby bindings for the Stripe API
|
262
|
-
test_files:
|
263
|
-
- test/api_stub_helpers.rb
|
264
|
-
- test/openapi/README.md
|
265
|
-
- test/stripe/account_external_accounts_operations_test.rb
|
266
|
-
- test/stripe/account_link_test.rb
|
267
|
-
- test/stripe/account_login_links_operations_test.rb
|
268
|
-
- test/stripe/account_persons_operations_test.rb
|
269
|
-
- test/stripe/account_test.rb
|
270
|
-
- test/stripe/alipay_account_test.rb
|
271
|
-
- test/stripe/api_operations_test.rb
|
272
|
-
- test/stripe/api_resource_test.rb
|
273
|
-
- test/stripe/apple_pay_domain_test.rb
|
274
|
-
- test/stripe/application_fee_refund_test.rb
|
275
|
-
- test/stripe/application_fee_refunds_operations_test.rb
|
276
|
-
- test/stripe/application_fee_test.rb
|
277
|
-
- test/stripe/balance_test.rb
|
278
|
-
- test/stripe/bank_account_test.rb
|
279
|
-
- test/stripe/charge_test.rb
|
280
|
-
- test/stripe/checkout/session_test.rb
|
281
|
-
- test/stripe/country_spec_test.rb
|
282
|
-
- test/stripe/coupon_test.rb
|
283
|
-
- test/stripe/customer_card_test.rb
|
284
|
-
- test/stripe/customer_sources_operations_test.rb
|
285
|
-
- test/stripe/customer_test.rb
|
286
|
-
- test/stripe/dispute_test.rb
|
287
|
-
- test/stripe/ephemeral_key_test.rb
|
288
|
-
- test/stripe/errors_test.rb
|
289
|
-
- test/stripe/exchange_rate_test.rb
|
290
|
-
- test/stripe/file_link_test.rb
|
291
|
-
- test/stripe/file_test.rb
|
292
|
-
- test/stripe/file_upload_test.rb
|
293
|
-
- test/stripe/invoice_item_test.rb
|
294
|
-
- test/stripe/invoice_line_item_test.rb
|
295
|
-
- test/stripe/invoice_test.rb
|
296
|
-
- test/stripe/issuer_fraud_record_test.rb
|
297
|
-
- test/stripe/issuing/authorization_test.rb
|
298
|
-
- test/stripe/issuing/card_test.rb
|
299
|
-
- test/stripe/issuing/cardholder_test.rb
|
300
|
-
- test/stripe/issuing/dispute_test.rb
|
301
|
-
- test/stripe/issuing/transaction_test.rb
|
302
|
-
- test/stripe/list_object_test.rb
|
303
|
-
- test/stripe/login_link_test.rb
|
304
|
-
- test/stripe/oauth_test.rb
|
305
|
-
- test/stripe/order_return_test.rb
|
306
|
-
- test/stripe/order_test.rb
|
307
|
-
- test/stripe/payment_intent_test.rb
|
308
|
-
- test/stripe/payment_method_test.rb
|
309
|
-
- test/stripe/payout_test.rb
|
310
|
-
- test/stripe/person_test.rb
|
311
|
-
- test/stripe/plan_test.rb
|
312
|
-
- test/stripe/product_test.rb
|
313
|
-
- test/stripe/radar/value_list_item_test.rb
|
314
|
-
- test/stripe/radar/value_list_test.rb
|
315
|
-
- test/stripe/recipient_test.rb
|
316
|
-
- test/stripe/refund_test.rb
|
317
|
-
- test/stripe/reporting/report_run_test.rb
|
318
|
-
- test/stripe/reporting/report_type_test.rb
|
319
|
-
- test/stripe/reversal_test.rb
|
320
|
-
- test/stripe/review_test.rb
|
321
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
322
|
-
- test/stripe/sku_test.rb
|
323
|
-
- test/stripe/source_test.rb
|
324
|
-
- test/stripe/source_transaction_test.rb
|
325
|
-
- test/stripe/stripe_client_test.rb
|
326
|
-
- test/stripe/stripe_object_test.rb
|
327
|
-
- test/stripe/stripe_response_test.rb
|
328
|
-
- test/stripe/subscription_item_test.rb
|
329
|
-
- test/stripe/subscription_schedule_revision_test.rb
|
330
|
-
- test/stripe/subscription_schedule_revisions_operations_test.rb
|
331
|
-
- test/stripe/subscription_schedule_test.rb
|
332
|
-
- test/stripe/subscription_test.rb
|
333
|
-
- test/stripe/terminal/connection_token_test.rb
|
334
|
-
- test/stripe/terminal/location_test.rb
|
335
|
-
- test/stripe/terminal/reader_test.rb
|
336
|
-
- test/stripe/three_d_secure_test.rb
|
337
|
-
- test/stripe/topup_test.rb
|
338
|
-
- test/stripe/transfer_reversals_operations_test.rb
|
339
|
-
- test/stripe/transfer_test.rb
|
340
|
-
- test/stripe/usage_record_summary_test.rb
|
341
|
-
- test/stripe/usage_record_test.rb
|
342
|
-
- test/stripe/util_test.rb
|
343
|
-
- test/stripe/webhook_endpoint_test.rb
|
344
|
-
- test/stripe/webhook_test.rb
|
345
|
-
- test/stripe_mock.rb
|
346
|
-
- test/stripe_test.rb
|
347
|
-
- test/test_data.rb
|
348
|
-
- test/test_helper.rb
|
188
|
+
test_files: []
|
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,32 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
DisplayCopNames: true
|
5
|
-
TargetRubyVersion: 2.0
|
6
|
-
|
7
|
-
Layout/CaseIndentation:
|
8
|
-
EnforcedStyle: end
|
9
|
-
|
10
|
-
Layout/IndentArray:
|
11
|
-
EnforcedStyle: consistent
|
12
|
-
|
13
|
-
Layout/IndentHash:
|
14
|
-
EnforcedStyle: consistent
|
15
|
-
|
16
|
-
Metrics/MethodLength:
|
17
|
-
# There's ~2 long methods in `StripeClient`. If we want to truncate those a
|
18
|
-
# little, we could move this to be closer to ~30 (but the default of 10 is
|
19
|
-
# probably too short).
|
20
|
-
Max: 50
|
21
|
-
|
22
|
-
Metrics/ModuleLength:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
Style/FrozenStringLiteralComment:
|
26
|
-
EnforcedStyle: always
|
27
|
-
|
28
|
-
Style/StringLiterals:
|
29
|
-
EnforcedStyle: double_quotes
|
30
|
-
|
31
|
-
Style/TrailingCommaInLiteral:
|
32
|
-
EnforcedStyleForMultiline: consistent_comma
|
data/.rubocop_todo.yml
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2018-07-19 14:22:24 +0200 using RuboCop version 0.50.0.
|
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: 19
|
10
|
-
Metrics/AbcSize:
|
11
|
-
Max: 54
|
12
|
-
|
13
|
-
# Offense count: 27
|
14
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
15
|
-
Metrics/BlockLength:
|
16
|
-
Max: 498
|
17
|
-
|
18
|
-
# Offense count: 8
|
19
|
-
# Configuration parameters: CountComments.
|
20
|
-
Metrics/ClassLength:
|
21
|
-
Max: 670
|
22
|
-
|
23
|
-
# Offense count: 11
|
24
|
-
Metrics/CyclomaticComplexity:
|
25
|
-
Max: 15
|
26
|
-
|
27
|
-
# Offense count: 278
|
28
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
29
|
-
# URISchemes: http, https
|
30
|
-
Metrics/LineLength:
|
31
|
-
Max: 310
|
32
|
-
|
33
|
-
# Offense count: 6
|
34
|
-
# Configuration parameters: CountKeywordArgs.
|
35
|
-
Metrics/ParameterLists:
|
36
|
-
Max: 7
|
37
|
-
|
38
|
-
# Offense count: 5
|
39
|
-
Metrics/PerceivedComplexity:
|
40
|
-
Max: 17
|
41
|
-
|
42
|
-
# Offense count: 2
|
43
|
-
Style/ClassVars:
|
44
|
-
Exclude:
|
45
|
-
- 'lib/stripe/stripe_object.rb'
|
46
|
-
- 'test/stripe/api_resource_test.rb'
|
47
|
-
|
48
|
-
# Offense count: 56
|
49
|
-
Style/Documentation:
|
50
|
-
Enabled: false
|
data/.travis.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
rvm:
|
4
|
-
- 2.1
|
5
|
-
- 2.2
|
6
|
-
- 2.3
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
9
|
-
- jruby-9.0.5.0
|
10
|
-
|
11
|
-
notifications:
|
12
|
-
email:
|
13
|
-
on_success: never
|
14
|
-
|
15
|
-
sudo: false
|
16
|
-
|
17
|
-
env:
|
18
|
-
global:
|
19
|
-
# If changing this number, please also change it in `test/test_helper.rb`.
|
20
|
-
- STRIPE_MOCK_VERSION=0.49.0
|
21
|
-
|
22
|
-
cache:
|
23
|
-
directories:
|
24
|
-
- stripe-mock
|
25
|
-
|
26
|
-
before_install:
|
27
|
-
# Install bundler 1.x, because we need to support Ruby 2.1 for now
|
28
|
-
- gem install bundler -v "~> 1.0"
|
29
|
-
# Unpack and start stripe-mock so that the test suite can talk to it
|
30
|
-
- |
|
31
|
-
if [ ! -d "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}" ]; then
|
32
|
-
mkdir -p stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/
|
33
|
-
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"
|
34
|
-
tar -zxf "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -C "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/"
|
35
|
-
fi
|
36
|
-
- |
|
37
|
-
stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/stripe-mock > /dev/null &
|
38
|
-
STRIPE_MOCK_PID=$!
|
39
|
-
- export PATH="${PATH}:${PWD}/stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}"
|
40
|
-
|
41
|
-
script:
|
42
|
-
- bundle exec rake
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Stripe
|
4
|
-
class AlipayAccount < APIResource
|
5
|
-
include Stripe::APIOperations::Save
|
6
|
-
include Stripe::APIOperations::Delete
|
7
|
-
|
8
|
-
OBJECT_NAME = "alipay_account".freeze
|
9
|
-
|
10
|
-
def resource_url
|
11
|
-
if !respond_to?(:customer) || customer.nil?
|
12
|
-
raise NotImplementedError,
|
13
|
-
"Alipay accounts cannot be accessed without a customer ID."
|
14
|
-
end
|
15
|
-
|
16
|
-
"#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.update(_id, _params = nil, _opts = nil)
|
20
|
-
raise NotImplementedError, "Alipay accounts cannot be updated without a customer ID. Update an Alipay account by `a = customer.sources.retrieve('alipay_account_id'); a.save`"
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.retrieve(_id, _opts = nil)
|
24
|
-
raise NotImplementedError, "Alipay accounts cannot be retrieved without a customer ID. Retrieve an Alipay account using customer.sources.retrieve('alipay_account_id')"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Stripe
|
4
|
-
class ApplicationFee < APIResource
|
5
|
-
extend Stripe::APIOperations::List
|
6
|
-
extend Stripe::APIOperations::NestedResource
|
7
|
-
|
8
|
-
OBJECT_NAME = "application_fee".freeze
|
9
|
-
|
10
|
-
nested_resource_class_methods :refund, operations: %i[create retrieve update list]
|
11
|
-
|
12
|
-
# If you don't need access to an updated fee object after the refund, it's
|
13
|
-
# more performant to just call `fee.refunds.create` directly.
|
14
|
-
def refund(params = {}, opts = {})
|
15
|
-
refunds.create(params, opts)
|
16
|
-
|
17
|
-
# now that a refund has been created, we expect the state of this object
|
18
|
-
# to change as well (i.e. `refunded` will now be `true`) so refresh it
|
19
|
-
# from the server
|
20
|
-
refresh
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|