stripe 12.7.0.pre.beta.2 → 13.1.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +96 -9
- data/OPENAPI_VERSION +1 -1
- data/README.md +4 -3
- data/VERSION +1 -1
- data/examples/README.md +11 -0
- data/examples/meter_event_stream.rb +47 -0
- data/examples/new_example.rb +24 -0
- data/examples/stripe_webhook_handler.rb +28 -0
- data/lib/stripe/api_operations/nested_resource.rb +1 -21
- data/lib/stripe/api_operations/request.rb +19 -70
- data/lib/stripe/api_operations/save.rb +4 -3
- data/lib/stripe/api_operations/singleton_save.rb +5 -2
- data/lib/stripe/api_requestor.rb +1131 -0
- data/lib/stripe/api_resource.rb +22 -14
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/connection_manager.rb +1 -1
- data/lib/stripe/errors.rb +8 -2
- data/lib/stripe/event_types.rb +14 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
- data/lib/stripe/list_object.rb +2 -3
- data/lib/stripe/oauth.rb +8 -15
- data/lib/stripe/object_types.rb +16 -1
- data/lib/stripe/request_options.rb +128 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +14 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +26 -0
- data/lib/stripe/resources/billing/credit_grant.rb +88 -0
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/customer.rb +2 -3
- data/lib/stripe/resources/file.rb +7 -5
- data/lib/stripe/resources/issuing/card.rb +20 -0
- data/lib/stripe/resources/quote.rb +4 -4
- data/lib/stripe/resources/source.rb +3 -2
- data/lib/stripe/resources/subscription.rb +6 -6
- data/lib/stripe/resources/tax/form.rb +4 -4
- data/lib/stripe/resources/usage_record_summary.rb +1 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +15 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +15 -0
- data/lib/stripe/resources/v2/event.rb +13 -0
- data/lib/stripe/resources.rb +9 -0
- data/lib/stripe/search_result_object.rb +1 -1
- data/lib/stripe/services/account_capability_service.rb +39 -0
- data/lib/stripe/services/account_external_account_service.rb +68 -0
- data/lib/stripe/services/account_link_service.rb +17 -0
- data/lib/stripe/services/account_login_link_service.rb +19 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_person_service.rb +61 -0
- data/lib/stripe/services/account_service.rb +100 -0
- data/lib/stripe/services/account_session_service.rb +17 -0
- data/lib/stripe/services/apple_pay_domain_service.rb +50 -0
- data/lib/stripe/services/application_fee_refund_service.rb +60 -0
- data/lib/stripe/services/application_fee_service.rb +35 -0
- data/lib/stripe/services/apps/secret_service.rb +52 -0
- data/lib/stripe/services/apps_service.rb +13 -0
- data/lib/stripe/services/balance_service.rb +12 -0
- data/lib/stripe/services/balance_transaction_service.rb +32 -0
- data/lib/stripe/services/billing/alert_service.rb +74 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +19 -0
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +30 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +74 -0
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +19 -0
- data/lib/stripe/services/billing/meter_event_service.rb +19 -0
- data/lib/stripe/services/billing/meter_event_summary_service.rb +19 -0
- data/lib/stripe/services/billing/meter_service.rb +81 -0
- data/lib/stripe/services/billing_portal/configuration_service.rb +52 -0
- data/lib/stripe/services/billing_portal/session_service.rb +19 -0
- data/lib/stripe/services/billing_portal_service.rb +14 -0
- data/lib/stripe/services/billing_service.rb +20 -0
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/charge_service.rb +69 -0
- data/lib/stripe/services/checkout/session_line_item_service.rb +19 -0
- data/lib/stripe/services/checkout/session_service.rb +72 -0
- data/lib/stripe/services/checkout_service.rb +13 -0
- data/lib/stripe/services/climate/order_service.rb +68 -0
- data/lib/stripe/services/climate/product_service.rb +30 -0
- data/lib/stripe/services/climate/supplier_service.rb +30 -0
- data/lib/stripe/services/climate_service.rb +15 -0
- data/lib/stripe/services/confirmation_token_service.rb +17 -0
- data/lib/stripe/services/country_spec_service.rb +28 -0
- data/lib/stripe/services/coupon_service.rb +51 -0
- data/lib/stripe/services/credit_note_line_item_service.rb +17 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +17 -0
- data/lib/stripe/services/credit_note_service.rb +93 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +50 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +28 -0
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +28 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +19 -0
- data/lib/stripe/services/customer_payment_method_service.rb +28 -0
- data/lib/stripe/services/customer_payment_source_service.rb +76 -0
- data/lib/stripe/services/customer_service.rb +89 -0
- data/lib/stripe/services/customer_session_service.rb +17 -0
- data/lib/stripe/services/customer_tax_id_service.rb +50 -0
- data/lib/stripe/services/dispute_service.rb +48 -0
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +30 -0
- data/lib/stripe/services/entitlements/feature_service.rb +52 -0
- data/lib/stripe/services/entitlements_service.rb +14 -0
- data/lib/stripe/services/ephemeral_key_service.rb +28 -0
- data/lib/stripe/services/event_service.rb +22 -0
- data/lib/stripe/services/exchange_rate_service.rb +28 -0
- data/lib/stripe/services/file_link_service.rb +38 -0
- data/lib/stripe/services/file_service.rb +35 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_owner_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +83 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections/session_service.rb +30 -0
- data/lib/stripe/services/financial_connections/transaction_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +16 -0
- data/lib/stripe/services/forwarding/request_service.rb +41 -0
- data/lib/stripe/services/forwarding_service.rb +13 -0
- data/lib/stripe/services/gift_cards/card_service.rb +63 -0
- data/lib/stripe/services/gift_cards/transaction_service.rb +74 -0
- data/lib/stripe/services/gift_cards_service.rb +14 -0
- data/lib/stripe/services/identity/verification_report_service.rb +30 -0
- data/lib/stripe/services/identity/verification_session_service.rb +106 -0
- data/lib/stripe/services/identity_service.rb +14 -0
- data/lib/stripe/services/invoice_item_service.rb +61 -0
- data/lib/stripe/services/invoice_line_item_service.rb +31 -0
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +50 -0
- data/lib/stripe/services/invoice_service.rb +245 -0
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +17 -0
- data/lib/stripe/services/issuing/authorization_service.rb +65 -0
- data/lib/stripe/services/issuing/card_service.rb +52 -0
- data/lib/stripe/services/issuing/cardholder_service.rb +52 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_service.rb +63 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/personalization_design_service.rb +52 -0
- data/lib/stripe/services/issuing/physical_bundle_service.rb +30 -0
- data/lib/stripe/services/issuing/token_service.rb +41 -0
- data/lib/stripe/services/issuing/transaction_service.rb +41 -0
- data/lib/stripe/services/issuing_service.rb +23 -0
- data/lib/stripe/services/mandate_service.rb +17 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/oauth_service.rb +63 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +230 -0
- data/lib/stripe/services/payment_link_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_link_service.rb +57 -0
- data/lib/stripe/services/payment_method_configuration_service.rb +50 -0
- data/lib/stripe/services/payment_method_domain_service.rb +66 -0
- data/lib/stripe/services/payment_method_service.rb +86 -0
- data/lib/stripe/services/payout_service.rb +66 -0
- data/lib/stripe/services/plan_service.rb +49 -0
- data/lib/stripe/services/price_service.rb +52 -0
- data/lib/stripe/services/product_feature_service.rb +50 -0
- data/lib/stripe/services/product_service.rb +70 -0
- data/lib/stripe/services/promotion_code_service.rb +50 -0
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +17 -0
- data/lib/stripe/services/quote_line_item_service.rb +17 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +140 -0
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +32 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +52 -0
- data/lib/stripe/services/radar/value_list_service.rb +63 -0
- data/lib/stripe/services/radar_service.rb +15 -0
- data/lib/stripe/services/refund_service.rb +63 -0
- data/lib/stripe/services/reporting/report_run_service.rb +41 -0
- data/lib/stripe/services/reporting/report_type_service.rb +30 -0
- data/lib/stripe/services/reporting_service.rb +14 -0
- data/lib/stripe/services/review_service.rb +33 -0
- data/lib/stripe/services/setup_attempt_service.rb +17 -0
- data/lib/stripe/services/setup_intent_service.rb +105 -0
- data/lib/stripe/services/shipping_rate_service.rb +50 -0
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
- data/lib/stripe/services/sigma_service.rb +13 -0
- data/lib/stripe/services/source_service.rb +64 -0
- data/lib/stripe/services/source_transaction_service.rb +17 -0
- data/lib/stripe/services/subscription_item_service.rb +69 -0
- data/lib/stripe/services/subscription_item_usage_record_service.rb +23 -0
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +19 -0
- data/lib/stripe/services/subscription_schedule_service.rb +83 -0
- data/lib/stripe/services/subscription_service.rb +127 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/calculation_line_item_service.rb +19 -0
- data/lib/stripe/services/tax/calculation_service.rb +37 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/registration_service.rb +54 -0
- data/lib/stripe/services/tax/settings_service.rb +30 -0
- data/lib/stripe/services/tax/transaction_line_item_service.rb +19 -0
- data/lib/stripe/services/tax/transaction_service.rb +48 -0
- data/lib/stripe/services/tax_code_service.rb +22 -0
- data/lib/stripe/services/tax_id_service.rb +38 -0
- data/lib/stripe/services/tax_rate_service.rb +38 -0
- data/lib/stripe/services/tax_service.rb +18 -0
- data/lib/stripe/services/terminal/configuration_service.rb +63 -0
- data/lib/stripe/services/terminal/connection_token_service.rb +19 -0
- data/lib/stripe/services/terminal/location_service.rb +64 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_service.rb +151 -0
- data/lib/stripe/services/terminal_service.rb +17 -0
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +19 -0
- data/lib/stripe/services/test_helpers/customer_service.rb +19 -0
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +76 -0
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +65 -0
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +43 -0
- data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
- data/lib/stripe/services/test_helpers/refund_service.rb +19 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +21 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +43 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +54 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +54 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +21 -0
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +21 -0
- data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
- data/lib/stripe/services/test_helpers_service.rb +19 -0
- data/lib/stripe/services/token_service.rb +23 -0
- data/lib/stripe/services/topup_service.rb +49 -0
- data/lib/stripe/services/transfer_reversal_service.rb +56 -0
- data/lib/stripe/services/transfer_service.rb +47 -0
- data/lib/stripe/services/treasury/credit_reversal_service.rb +41 -0
- data/lib/stripe/services/treasury/debit_reversal_service.rb +41 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +30 -0
- data/lib/stripe/services/treasury/financial_account_service.rb +59 -0
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +52 -0
- data/lib/stripe/services/treasury/outbound_payment_service.rb +52 -0
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +52 -0
- data/lib/stripe/services/treasury/received_credit_service.rb +30 -0
- data/lib/stripe/services/treasury/received_debit_service.rb +30 -0
- data/lib/stripe/services/treasury/transaction_entry_service.rb +30 -0
- data/lib/stripe/services/treasury/transaction_service.rb +30 -0
- data/lib/stripe/services/treasury_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +94 -0
- data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +21 -0
- data/lib/stripe/services/v2/billing/meter_event_service.rb +21 -0
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +21 -0
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +23 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -0
- data/lib/stripe/services/v2/core/event_service.rb +32 -0
- data/lib/stripe/services/v2/core_service.rb +15 -0
- data/lib/stripe/services/v2_services.rb +14 -0
- data/lib/stripe/services/webhook_endpoint_service.rb +61 -0
- data/lib/stripe/services.rb +203 -0
- data/lib/stripe/singleton_api_resource.rb +1 -18
- data/lib/stripe/stripe_client.rb +51 -1067
- data/lib/stripe/stripe_configuration.rb +33 -19
- data/lib/stripe/stripe_object.rb +37 -18
- data/lib/stripe/stripe_service.rb +32 -0
- data/lib/stripe/thin_event.rb +17 -0
- data/lib/stripe/util.rb +68 -39
- data/lib/stripe/v2_list_object.rb +84 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/lib/stripe.rb +33 -27
- metadata +223 -2
data/lib/stripe.rb
CHANGED
@@ -32,13 +32,18 @@ require "stripe/api_operations/search"
|
|
32
32
|
# API resource support classes
|
33
33
|
require "stripe/errors"
|
34
34
|
require "stripe/object_types"
|
35
|
+
require "stripe/event_types"
|
36
|
+
require "stripe/request_options"
|
35
37
|
require "stripe/util"
|
36
38
|
require "stripe/connection_manager"
|
37
39
|
require "stripe/multipart_encoder"
|
40
|
+
require "stripe/api_requestor"
|
41
|
+
require "stripe/stripe_service"
|
38
42
|
require "stripe/stripe_client"
|
39
43
|
require "stripe/stripe_object"
|
40
44
|
require "stripe/stripe_response"
|
41
45
|
require "stripe/list_object"
|
46
|
+
require "stripe/v2_list_object"
|
42
47
|
require "stripe/search_result_object"
|
43
48
|
require "stripe/error_object"
|
44
49
|
require "stripe/api_resource"
|
@@ -47,12 +52,15 @@ require "stripe/singleton_api_resource"
|
|
47
52
|
require "stripe/webhook"
|
48
53
|
require "stripe/stripe_configuration"
|
49
54
|
require "stripe/request_signing_authenticator"
|
55
|
+
require "stripe/thin_event"
|
50
56
|
|
51
57
|
# Named API resources
|
52
58
|
require "stripe/resources"
|
59
|
+
require "stripe/services"
|
53
60
|
|
54
61
|
# OAuth
|
55
62
|
require "stripe/oauth"
|
63
|
+
require "stripe/services/oauth_service"
|
56
64
|
|
57
65
|
module Stripe
|
58
66
|
DEFAULT_CA_BUNDLE_PATH = __dir__ + "/data/ca-certificates.crt"
|
@@ -62,6 +70,12 @@ module Stripe
|
|
62
70
|
LEVEL_ERROR = Logger::ERROR
|
63
71
|
LEVEL_INFO = Logger::INFO
|
64
72
|
|
73
|
+
# API base constants
|
74
|
+
DEFAULT_API_BASE = "https://api.stripe.com"
|
75
|
+
DEFAULT_CONNECT_BASE = "https://connect.stripe.com"
|
76
|
+
DEFAULT_UPLOAD_BASE = "https://files.stripe.com"
|
77
|
+
DEFAULT_METER_EVENTS_BASE = "https://meter-events.stripe.com"
|
78
|
+
|
65
79
|
@app_info = nil
|
66
80
|
|
67
81
|
@config = Stripe::StripeConfiguration.setup
|
@@ -79,6 +93,7 @@ module Stripe
|
|
79
93
|
def_delegators :@config, :api_base, :api_base=
|
80
94
|
def_delegators :@config, :uploads_base, :uploads_base=
|
81
95
|
def_delegators :@config, :connect_base, :connect_base=
|
96
|
+
def_delegators :@config, :meter_events_base, :meter_events_base=
|
82
97
|
def_delegators :@config, :open_timeout, :open_timeout=
|
83
98
|
def_delegators :@config, :read_timeout, :read_timeout=
|
84
99
|
def_delegators :@config, :write_timeout, :write_timeout=
|
@@ -129,47 +144,38 @@ module Stripe
|
|
129
144
|
self.api_version = "#{api_version}; #{beta_name}=#{version}"
|
130
145
|
end
|
131
146
|
|
132
|
-
class Preview
|
133
|
-
def self._get_default_opts(opts)
|
134
|
-
{ api_mode: :preview }.merge(opts)
|
135
|
-
end
|
136
|
-
|
137
|
-
def self.get(url, opts = {})
|
138
|
-
Stripe.raw_request(:get, url, {}, _get_default_opts(opts))
|
139
|
-
end
|
140
|
-
|
141
|
-
def self.post(url, params = {}, opts = {})
|
142
|
-
Stripe.raw_request(:post, url, params, _get_default_opts(opts))
|
143
|
-
end
|
144
|
-
|
145
|
-
def self.delete(url, opts = {})
|
146
|
-
Stripe.raw_request(:delete, url, {}, _get_default_opts(opts))
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
147
|
class RawRequest
|
151
|
-
include Stripe::APIOperations::Request
|
152
|
-
|
153
148
|
def initialize
|
154
149
|
@opts = {}
|
155
150
|
end
|
156
151
|
|
157
|
-
def execute(method, url, params
|
158
|
-
|
152
|
+
def execute(method, url, base_address: :api, params: {}, opts: {}, usage: [])
|
153
|
+
opts = Util.normalize_opts(opts)
|
154
|
+
req_opts = RequestOptions.extract_opts_from_hash(opts)
|
159
155
|
|
160
|
-
|
156
|
+
requestor = APIRequestor.active_requestor
|
157
|
+
resp, = requestor.send(:execute_request_internal, method, url, base_address, params, req_opts,
|
158
|
+
usage)
|
159
|
+
|
160
|
+
requestor.interpret_response(resp)
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
164
|
# Sends a request to Stripe REST API
|
165
|
-
def self.raw_request(method, url, params = {}, opts = {})
|
165
|
+
def self.raw_request(method, url, params = {}, opts = {}, base_address: :api)
|
166
166
|
req = RawRequest.new
|
167
|
-
req.execute(method, url, params, opts,
|
167
|
+
req.execute(method, url, base_address: base_address, params: params, opts: opts,
|
168
|
+
usage: ["raw_request"])
|
168
169
|
end
|
169
170
|
|
170
|
-
def self.deserialize(data)
|
171
|
+
def self.deserialize(data, api_mode: :v1)
|
171
172
|
data = JSON.parse(data) if data.is_a?(String)
|
172
|
-
Util.convert_to_stripe_object(data, {})
|
173
|
+
Util.convert_to_stripe_object(data, {}, api_mode: api_mode)
|
174
|
+
end
|
175
|
+
class << self
|
176
|
+
extend Gem::Deprecate
|
177
|
+
deprecate :raw_request, "StripeClient#raw_request", 2024, 9
|
178
|
+
deprecate :deserialize, "StripeClient#deserialize", 2024, 9
|
173
179
|
end
|
174
180
|
end
|
175
181
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 13.1.0.pre.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
14
14
|
for details.
|
@@ -29,6 +29,10 @@ files:
|
|
29
29
|
- README.md
|
30
30
|
- Rakefile
|
31
31
|
- VERSION
|
32
|
+
- examples/README.md
|
33
|
+
- examples/meter_event_stream.rb
|
34
|
+
- examples/new_example.rb
|
35
|
+
- examples/stripe_webhook_handler.rb
|
32
36
|
- exe/stripe-console
|
33
37
|
- lib/data/ca-certificates.crt
|
34
38
|
- lib/stripe.rb
|
@@ -40,17 +44,22 @@ files:
|
|
40
44
|
- lib/stripe/api_operations/save.rb
|
41
45
|
- lib/stripe/api_operations/search.rb
|
42
46
|
- lib/stripe/api_operations/singleton_save.rb
|
47
|
+
- lib/stripe/api_requestor.rb
|
43
48
|
- lib/stripe/api_resource.rb
|
44
49
|
- lib/stripe/api_resource_test_helpers.rb
|
45
50
|
- lib/stripe/api_version.rb
|
46
51
|
- lib/stripe/connection_manager.rb
|
47
52
|
- lib/stripe/error_object.rb
|
48
53
|
- lib/stripe/errors.rb
|
54
|
+
- lib/stripe/event_types.rb
|
55
|
+
- lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
|
56
|
+
- lib/stripe/events/v1_billing_meter_no_meter_found_event.rb
|
49
57
|
- lib/stripe/instrumentation.rb
|
50
58
|
- lib/stripe/list_object.rb
|
51
59
|
- lib/stripe/multipart_encoder.rb
|
52
60
|
- lib/stripe/oauth.rb
|
53
61
|
- lib/stripe/object_types.rb
|
62
|
+
- lib/stripe/request_options.rb
|
54
63
|
- lib/stripe/request_signing_authenticator.rb
|
55
64
|
- lib/stripe/resources.rb
|
56
65
|
- lib/stripe/resources/account.rb
|
@@ -66,6 +75,9 @@ files:
|
|
66
75
|
- lib/stripe/resources/balance_transaction.rb
|
67
76
|
- lib/stripe/resources/bank_account.rb
|
68
77
|
- lib/stripe/resources/billing/alert.rb
|
78
|
+
- lib/stripe/resources/billing/credit_balance_summary.rb
|
79
|
+
- lib/stripe/resources/billing/credit_balance_transaction.rb
|
80
|
+
- lib/stripe/resources/billing/credit_grant.rb
|
69
81
|
- lib/stripe/resources/billing/meter.rb
|
70
82
|
- lib/stripe/resources/billing/meter_event.rb
|
71
83
|
- lib/stripe/resources/billing/meter_event_adjustment.rb
|
@@ -200,14 +212,223 @@ files:
|
|
200
212
|
- lib/stripe/resources/treasury/transaction_entry.rb
|
201
213
|
- lib/stripe/resources/usage_record.rb
|
202
214
|
- lib/stripe/resources/usage_record_summary.rb
|
215
|
+
- lib/stripe/resources/v2/billing/meter_event.rb
|
216
|
+
- lib/stripe/resources/v2/billing/meter_event_adjustment.rb
|
217
|
+
- lib/stripe/resources/v2/billing/meter_event_session.rb
|
218
|
+
- lib/stripe/resources/v2/event.rb
|
203
219
|
- lib/stripe/resources/webhook_endpoint.rb
|
204
220
|
- lib/stripe/search_result_object.rb
|
221
|
+
- lib/stripe/services.rb
|
222
|
+
- lib/stripe/services/account_capability_service.rb
|
223
|
+
- lib/stripe/services/account_external_account_service.rb
|
224
|
+
- lib/stripe/services/account_link_service.rb
|
225
|
+
- lib/stripe/services/account_login_link_service.rb
|
226
|
+
- lib/stripe/services/account_notice_service.rb
|
227
|
+
- lib/stripe/services/account_person_service.rb
|
228
|
+
- lib/stripe/services/account_service.rb
|
229
|
+
- lib/stripe/services/account_session_service.rb
|
230
|
+
- lib/stripe/services/apple_pay_domain_service.rb
|
231
|
+
- lib/stripe/services/application_fee_refund_service.rb
|
232
|
+
- lib/stripe/services/application_fee_service.rb
|
233
|
+
- lib/stripe/services/apps/secret_service.rb
|
234
|
+
- lib/stripe/services/apps_service.rb
|
235
|
+
- lib/stripe/services/balance_service.rb
|
236
|
+
- lib/stripe/services/balance_transaction_service.rb
|
237
|
+
- lib/stripe/services/billing/alert_service.rb
|
238
|
+
- lib/stripe/services/billing/credit_balance_summary_service.rb
|
239
|
+
- lib/stripe/services/billing/credit_balance_transaction_service.rb
|
240
|
+
- lib/stripe/services/billing/credit_grant_service.rb
|
241
|
+
- lib/stripe/services/billing/meter_event_adjustment_service.rb
|
242
|
+
- lib/stripe/services/billing/meter_event_service.rb
|
243
|
+
- lib/stripe/services/billing/meter_event_summary_service.rb
|
244
|
+
- lib/stripe/services/billing/meter_service.rb
|
245
|
+
- lib/stripe/services/billing_portal/configuration_service.rb
|
246
|
+
- lib/stripe/services/billing_portal/session_service.rb
|
247
|
+
- lib/stripe/services/billing_portal_service.rb
|
248
|
+
- lib/stripe/services/billing_service.rb
|
249
|
+
- lib/stripe/services/capital/financing_offer_service.rb
|
250
|
+
- lib/stripe/services/capital/financing_summary_service.rb
|
251
|
+
- lib/stripe/services/capital/financing_transaction_service.rb
|
252
|
+
- lib/stripe/services/capital_service.rb
|
253
|
+
- lib/stripe/services/charge_service.rb
|
254
|
+
- lib/stripe/services/checkout/session_line_item_service.rb
|
255
|
+
- lib/stripe/services/checkout/session_service.rb
|
256
|
+
- lib/stripe/services/checkout_service.rb
|
257
|
+
- lib/stripe/services/climate/order_service.rb
|
258
|
+
- lib/stripe/services/climate/product_service.rb
|
259
|
+
- lib/stripe/services/climate/supplier_service.rb
|
260
|
+
- lib/stripe/services/climate_service.rb
|
261
|
+
- lib/stripe/services/confirmation_token_service.rb
|
262
|
+
- lib/stripe/services/country_spec_service.rb
|
263
|
+
- lib/stripe/services/coupon_service.rb
|
264
|
+
- lib/stripe/services/credit_note_line_item_service.rb
|
265
|
+
- lib/stripe/services/credit_note_preview_lines_service.rb
|
266
|
+
- lib/stripe/services/credit_note_service.rb
|
267
|
+
- lib/stripe/services/customer_balance_transaction_service.rb
|
268
|
+
- lib/stripe/services/customer_cash_balance_service.rb
|
269
|
+
- lib/stripe/services/customer_cash_balance_transaction_service.rb
|
270
|
+
- lib/stripe/services/customer_funding_instructions_service.rb
|
271
|
+
- lib/stripe/services/customer_payment_method_service.rb
|
272
|
+
- lib/stripe/services/customer_payment_source_service.rb
|
273
|
+
- lib/stripe/services/customer_service.rb
|
274
|
+
- lib/stripe/services/customer_session_service.rb
|
275
|
+
- lib/stripe/services/customer_tax_id_service.rb
|
276
|
+
- lib/stripe/services/dispute_service.rb
|
277
|
+
- lib/stripe/services/entitlements/active_entitlement_service.rb
|
278
|
+
- lib/stripe/services/entitlements/feature_service.rb
|
279
|
+
- lib/stripe/services/entitlements_service.rb
|
280
|
+
- lib/stripe/services/ephemeral_key_service.rb
|
281
|
+
- lib/stripe/services/event_service.rb
|
282
|
+
- lib/stripe/services/exchange_rate_service.rb
|
283
|
+
- lib/stripe/services/file_link_service.rb
|
284
|
+
- lib/stripe/services/file_service.rb
|
285
|
+
- lib/stripe/services/financial_connections/account_inferred_balance_service.rb
|
286
|
+
- lib/stripe/services/financial_connections/account_owner_service.rb
|
287
|
+
- lib/stripe/services/financial_connections/account_service.rb
|
288
|
+
- lib/stripe/services/financial_connections/institution_service.rb
|
289
|
+
- lib/stripe/services/financial_connections/session_service.rb
|
290
|
+
- lib/stripe/services/financial_connections/transaction_service.rb
|
291
|
+
- lib/stripe/services/financial_connections_service.rb
|
292
|
+
- lib/stripe/services/forwarding/request_service.rb
|
293
|
+
- lib/stripe/services/forwarding_service.rb
|
294
|
+
- lib/stripe/services/gift_cards/card_service.rb
|
295
|
+
- lib/stripe/services/gift_cards/transaction_service.rb
|
296
|
+
- lib/stripe/services/gift_cards_service.rb
|
297
|
+
- lib/stripe/services/identity/verification_report_service.rb
|
298
|
+
- lib/stripe/services/identity/verification_session_service.rb
|
299
|
+
- lib/stripe/services/identity_service.rb
|
300
|
+
- lib/stripe/services/invoice_item_service.rb
|
301
|
+
- lib/stripe/services/invoice_line_item_service.rb
|
302
|
+
- lib/stripe/services/invoice_payment_service.rb
|
303
|
+
- lib/stripe/services/invoice_rendering_template_service.rb
|
304
|
+
- lib/stripe/services/invoice_service.rb
|
305
|
+
- lib/stripe/services/invoice_upcoming_lines_service.rb
|
306
|
+
- lib/stripe/services/issuing/authorization_service.rb
|
307
|
+
- lib/stripe/services/issuing/card_service.rb
|
308
|
+
- lib/stripe/services/issuing/cardholder_service.rb
|
309
|
+
- lib/stripe/services/issuing/credit_underwriting_record_service.rb
|
310
|
+
- lib/stripe/services/issuing/dispute_service.rb
|
311
|
+
- lib/stripe/services/issuing/dispute_settlement_detail_service.rb
|
312
|
+
- lib/stripe/services/issuing/personalization_design_service.rb
|
313
|
+
- lib/stripe/services/issuing/physical_bundle_service.rb
|
314
|
+
- lib/stripe/services/issuing/token_service.rb
|
315
|
+
- lib/stripe/services/issuing/transaction_service.rb
|
316
|
+
- lib/stripe/services/issuing_service.rb
|
317
|
+
- lib/stripe/services/mandate_service.rb
|
318
|
+
- lib/stripe/services/margin_service.rb
|
319
|
+
- lib/stripe/services/oauth_service.rb
|
320
|
+
- lib/stripe/services/order_line_item_service.rb
|
321
|
+
- lib/stripe/services/order_service.rb
|
322
|
+
- lib/stripe/services/payment_intent_service.rb
|
323
|
+
- lib/stripe/services/payment_link_line_item_service.rb
|
324
|
+
- lib/stripe/services/payment_link_service.rb
|
325
|
+
- lib/stripe/services/payment_method_configuration_service.rb
|
326
|
+
- lib/stripe/services/payment_method_domain_service.rb
|
327
|
+
- lib/stripe/services/payment_method_service.rb
|
328
|
+
- lib/stripe/services/payout_service.rb
|
329
|
+
- lib/stripe/services/plan_service.rb
|
330
|
+
- lib/stripe/services/price_service.rb
|
331
|
+
- lib/stripe/services/product_feature_service.rb
|
332
|
+
- lib/stripe/services/product_service.rb
|
333
|
+
- lib/stripe/services/promotion_code_service.rb
|
334
|
+
- lib/stripe/services/quote_computed_upfront_line_items_service.rb
|
335
|
+
- lib/stripe/services/quote_line_item_service.rb
|
336
|
+
- lib/stripe/services/quote_line_service.rb
|
337
|
+
- lib/stripe/services/quote_preview_invoice_service.rb
|
338
|
+
- lib/stripe/services/quote_preview_subscription_schedule_service.rb
|
339
|
+
- lib/stripe/services/quote_service.rb
|
340
|
+
- lib/stripe/services/radar/early_fraud_warning_service.rb
|
341
|
+
- lib/stripe/services/radar/value_list_item_service.rb
|
342
|
+
- lib/stripe/services/radar/value_list_service.rb
|
343
|
+
- lib/stripe/services/radar_service.rb
|
344
|
+
- lib/stripe/services/refund_service.rb
|
345
|
+
- lib/stripe/services/reporting/report_run_service.rb
|
346
|
+
- lib/stripe/services/reporting/report_type_service.rb
|
347
|
+
- lib/stripe/services/reporting_service.rb
|
348
|
+
- lib/stripe/services/review_service.rb
|
349
|
+
- lib/stripe/services/setup_attempt_service.rb
|
350
|
+
- lib/stripe/services/setup_intent_service.rb
|
351
|
+
- lib/stripe/services/shipping_rate_service.rb
|
352
|
+
- lib/stripe/services/sigma/scheduled_query_run_service.rb
|
353
|
+
- lib/stripe/services/sigma_service.rb
|
354
|
+
- lib/stripe/services/source_service.rb
|
355
|
+
- lib/stripe/services/source_transaction_service.rb
|
356
|
+
- lib/stripe/services/subscription_item_service.rb
|
357
|
+
- lib/stripe/services/subscription_item_usage_record_service.rb
|
358
|
+
- lib/stripe/services/subscription_item_usage_record_summary_service.rb
|
359
|
+
- lib/stripe/services/subscription_schedule_service.rb
|
360
|
+
- lib/stripe/services/subscription_service.rb
|
361
|
+
- lib/stripe/services/tax/association_service.rb
|
362
|
+
- lib/stripe/services/tax/calculation_line_item_service.rb
|
363
|
+
- lib/stripe/services/tax/calculation_service.rb
|
364
|
+
- lib/stripe/services/tax/form_service.rb
|
365
|
+
- lib/stripe/services/tax/registration_service.rb
|
366
|
+
- lib/stripe/services/tax/settings_service.rb
|
367
|
+
- lib/stripe/services/tax/transaction_line_item_service.rb
|
368
|
+
- lib/stripe/services/tax/transaction_service.rb
|
369
|
+
- lib/stripe/services/tax_code_service.rb
|
370
|
+
- lib/stripe/services/tax_id_service.rb
|
371
|
+
- lib/stripe/services/tax_rate_service.rb
|
372
|
+
- lib/stripe/services/tax_service.rb
|
373
|
+
- lib/stripe/services/terminal/configuration_service.rb
|
374
|
+
- lib/stripe/services/terminal/connection_token_service.rb
|
375
|
+
- lib/stripe/services/terminal/location_service.rb
|
376
|
+
- lib/stripe/services/terminal/reader_collected_data_service.rb
|
377
|
+
- lib/stripe/services/terminal/reader_service.rb
|
378
|
+
- lib/stripe/services/terminal_service.rb
|
379
|
+
- lib/stripe/services/test_helpers/confirmation_token_service.rb
|
380
|
+
- lib/stripe/services/test_helpers/customer_service.rb
|
381
|
+
- lib/stripe/services/test_helpers/issuing/authorization_service.rb
|
382
|
+
- lib/stripe/services/test_helpers/issuing/card_service.rb
|
383
|
+
- lib/stripe/services/test_helpers/issuing/personalization_design_service.rb
|
384
|
+
- lib/stripe/services/test_helpers/issuing/transaction_service.rb
|
385
|
+
- lib/stripe/services/test_helpers/issuing_service.rb
|
386
|
+
- lib/stripe/services/test_helpers/refund_service.rb
|
387
|
+
- lib/stripe/services/test_helpers/terminal/reader_service.rb
|
388
|
+
- lib/stripe/services/test_helpers/terminal_service.rb
|
389
|
+
- lib/stripe/services/test_helpers/test_clock_service.rb
|
390
|
+
- lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
|
391
|
+
- lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb
|
392
|
+
- lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb
|
393
|
+
- lib/stripe/services/test_helpers/treasury/received_credit_service.rb
|
394
|
+
- lib/stripe/services/test_helpers/treasury/received_debit_service.rb
|
395
|
+
- lib/stripe/services/test_helpers/treasury_service.rb
|
396
|
+
- lib/stripe/services/test_helpers_service.rb
|
397
|
+
- lib/stripe/services/token_service.rb
|
398
|
+
- lib/stripe/services/topup_service.rb
|
399
|
+
- lib/stripe/services/transfer_reversal_service.rb
|
400
|
+
- lib/stripe/services/transfer_service.rb
|
401
|
+
- lib/stripe/services/treasury/credit_reversal_service.rb
|
402
|
+
- lib/stripe/services/treasury/debit_reversal_service.rb
|
403
|
+
- lib/stripe/services/treasury/financial_account_features_service.rb
|
404
|
+
- lib/stripe/services/treasury/financial_account_service.rb
|
405
|
+
- lib/stripe/services/treasury/inbound_transfer_service.rb
|
406
|
+
- lib/stripe/services/treasury/outbound_payment_service.rb
|
407
|
+
- lib/stripe/services/treasury/outbound_transfer_service.rb
|
408
|
+
- lib/stripe/services/treasury/received_credit_service.rb
|
409
|
+
- lib/stripe/services/treasury/received_debit_service.rb
|
410
|
+
- lib/stripe/services/treasury/transaction_entry_service.rb
|
411
|
+
- lib/stripe/services/treasury/transaction_service.rb
|
412
|
+
- lib/stripe/services/treasury_service.rb
|
413
|
+
- lib/stripe/services/v1_services.rb
|
414
|
+
- lib/stripe/services/v2/billing/meter_event_adjustment_service.rb
|
415
|
+
- lib/stripe/services/v2/billing/meter_event_service.rb
|
416
|
+
- lib/stripe/services/v2/billing/meter_event_session_service.rb
|
417
|
+
- lib/stripe/services/v2/billing/meter_event_stream_service.rb
|
418
|
+
- lib/stripe/services/v2/billing_service.rb
|
419
|
+
- lib/stripe/services/v2/core/event_service.rb
|
420
|
+
- lib/stripe/services/v2/core_service.rb
|
421
|
+
- lib/stripe/services/v2_services.rb
|
422
|
+
- lib/stripe/services/webhook_endpoint_service.rb
|
205
423
|
- lib/stripe/singleton_api_resource.rb
|
206
424
|
- lib/stripe/stripe_client.rb
|
207
425
|
- lib/stripe/stripe_configuration.rb
|
208
426
|
- lib/stripe/stripe_object.rb
|
209
427
|
- lib/stripe/stripe_response.rb
|
428
|
+
- lib/stripe/stripe_service.rb
|
429
|
+
- lib/stripe/thin_event.rb
|
210
430
|
- lib/stripe/util.rb
|
431
|
+
- lib/stripe/v2_list_object.rb
|
211
432
|
- lib/stripe/version.rb
|
212
433
|
- lib/stripe/webhook.rb
|
213
434
|
- stripe.gemspec
|