stripe 18.5.0.pre.alpha.2 → 18.5.0.pre.alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +12 -44
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +2 -2
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +2 -2
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_custom_pricing_unit_overage_rate_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +2 -2
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_created_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_person_created_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +2 -2
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +2 -2
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +2 -2
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +2 -2
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +2 -2
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +2 -2
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +2 -2
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +2 -2
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +2 -2
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +2 -2
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +2 -2
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/account_session_create_params.rb +9 -2
- data/lib/stripe/params/checkout/session_approve_params.rb +52 -0
- data/lib/stripe/params/checkout/session_create_params.rb +8 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +3 -3
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +3 -3
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +41 -2
- data/lib/stripe/params/orchestration/payment_attempt_retrieve_params.rb +15 -0
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +22 -0
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_report_informational_params.rb +93 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +79 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +15 -1
- data/lib/stripe/params/payment_intent_create_params.rb +15 -1
- data/lib/stripe/params/payment_intent_simulate_crypto_deposit_params.rb +31 -0
- data/lib/stripe/params/payment_intent_update_params.rb +15 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +4 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +4 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -1
- data/lib/stripe/params/radar/customer_evaluation_create_params.rb +69 -0
- data/lib/stripe/params/radar/customer_evaluation_update_params.rb +59 -0
- data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +4 -1
- data/lib/stripe/params/tax/registration_create_params.rb +14 -1
- data/lib/stripe/params/test_helpers/payment_intent_simulate_crypto_deposit_params.rb +33 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +527 -5
- data/lib/stripe/params/v2/core/account_update_params.rb +527 -5
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +84 -0
- data/lib/stripe/params.rb +13 -0
- data/lib/stripe/request_params.rb +5 -8
- data/lib/stripe/resources/account_signals.rb +1 -1
- data/lib/stripe/resources/checkout/session.rb +188 -0
- data/lib/stripe/resources/dispute.rb +2 -0
- data/lib/stripe/resources/invoice_item.rb +8 -14
- data/lib/stripe/resources/invoice_line_item.rb +6 -14
- data/lib/stripe/resources/issuing/authorization.rb +120 -0
- data/lib/stripe/resources/orchestration/payment_attempt.rb +31 -0
- data/lib/stripe/resources/payment_attempt_record.rb +120 -0
- data/lib/stripe/resources/payment_intent.rb +166 -1
- data/lib/stripe/resources/radar/customer_evaluation.rb +153 -0
- data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
- data/lib/stripe/resources/tax/registration.rb +16 -0
- data/lib/stripe/resources/v2/core/account.rb +715 -3
- data/lib/stripe/resources/v2/core/event_notification.rb +2 -1
- data/lib/stripe/resources/v2/money_management/received_debit.rb +1 -1
- data/lib/stripe/resources.rb +3 -0
- data/lib/stripe/services/checkout/session_service.rb +11 -0
- data/lib/stripe/services/orchestration/payment_attempt_service.rb +19 -0
- data/lib/stripe/services/orchestration_service.rb +13 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +66 -0
- data/lib/stripe/services/radar/customer_evaluation_service.rb +30 -0
- data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +4 -1
- data/lib/stripe/services/test_helpers/payment_intent_service.rb +19 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services.rb +5 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +5725 -874
- metadata +23 -4
- data/lib/stripe/resources/alipay_account.rb +0 -34
- data/lib/stripe/resources/recipient_transfer.rb +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74579c8b43ee61e3a3f44eac160fd911fbb05be52bae41d01b6a264fff38e348
|
|
4
|
+
data.tar.gz: dc8208a7dc5edd9550f382a96a29e8d6a600c76b9e0d94c2b6d1b101bdc2e383
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f4546d6e56098b72019a2839faf49756af82f956165579efc238905f711acfb682ea299f398bdd43e5404f09c5fff765eb608d3f145e45ab42c3ede9a68bf5e
|
|
7
|
+
data.tar.gz: 8d2aebdd16da9a183f24e9a90320eafdc2d32e246c0eae300b71f2a111eed00e739cb998622628fc00734ca47d8d4f8997d3bac832f2600638640e304153959d
|
data/lib/stripe/api_requestor.rb
CHANGED
|
@@ -15,7 +15,6 @@ module Stripe
|
|
|
15
15
|
|
|
16
16
|
# Initializes a new APIRequestor
|
|
17
17
|
def initialize(config_arg = {})
|
|
18
|
-
@system_profiler = SystemProfiler.new
|
|
19
18
|
@last_request_metrics = Queue.new
|
|
20
19
|
|
|
21
20
|
@config = case config_arg
|
|
@@ -110,7 +109,7 @@ module Stripe
|
|
|
110
109
|
return false if num_retries >= config.max_network_retries
|
|
111
110
|
|
|
112
111
|
case error
|
|
113
|
-
when Net::OpenTimeout, Net::ReadTimeout
|
|
112
|
+
when Net::OpenTimeout, Net::ReadTimeout, Net::HTTPFatalError
|
|
114
113
|
# Retry on timeout-related problems (either on open or read).
|
|
115
114
|
true
|
|
116
115
|
when EOFError, Errno::ECONNREFUSED, Errno::ECONNRESET, # rubocop:todo Lint/DuplicateBranch
|
|
@@ -350,6 +349,7 @@ module Stripe
|
|
|
350
349
|
Errno::ETIMEDOUT => ERROR_MESSAGE_TIMEOUT_CONNECT,
|
|
351
350
|
SocketError => ERROR_MESSAGE_CONNECTION,
|
|
352
351
|
|
|
352
|
+
Net::HTTPFatalError => ERROR_MESSAGE_CONNECTION,
|
|
353
353
|
Net::OpenTimeout => ERROR_MESSAGE_TIMEOUT_CONNECT,
|
|
354
354
|
Net::ReadTimeout => ERROR_MESSAGE_TIMEOUT_READ,
|
|
355
355
|
|
|
@@ -995,7 +995,7 @@ module Stripe
|
|
|
995
995
|
headers["Stripe-Account"] = req_opts[:stripe_account] if req_opts[:stripe_account]
|
|
996
996
|
headers["Stripe-Context"] = req_opts[:stripe_context] if req_opts[:stripe_context]
|
|
997
997
|
|
|
998
|
-
user_agent =
|
|
998
|
+
user_agent = SystemProfiler.user_agent
|
|
999
999
|
begin
|
|
1000
1000
|
headers.update(
|
|
1001
1001
|
"X-Stripe-Client-User-Agent" => JSON.generate(user_agent)
|
|
@@ -1097,45 +1097,19 @@ module Stripe
|
|
|
1097
1097
|
# in so that we can generate a rich user agent header to help debug
|
|
1098
1098
|
# integrations.
|
|
1099
1099
|
class SystemProfiler
|
|
1100
|
-
def self.uname
|
|
1101
|
-
if ::File.exist?("/proc/version")
|
|
1102
|
-
::File.read("/proc/version").strip
|
|
1103
|
-
else
|
|
1104
|
-
case RbConfig::CONFIG["host_os"]
|
|
1105
|
-
when /linux|darwin|bsd|sunos|solaris|cygwin/i
|
|
1106
|
-
uname_from_system
|
|
1107
|
-
when /mswin|mingw/i
|
|
1108
|
-
uname_from_system_ver
|
|
1109
|
-
else
|
|
1110
|
-
"unknown platform"
|
|
1111
|
-
end
|
|
1112
|
-
end
|
|
1113
|
-
end
|
|
1114
|
-
|
|
1115
|
-
def self.uname_from_system
|
|
1116
|
-
(`uname -a 2>/dev/null` || "").strip
|
|
1117
|
-
rescue Errno::ENOENT
|
|
1118
|
-
"uname executable not found"
|
|
1119
|
-
rescue Errno::ENOMEM # couldn't create subprocess
|
|
1120
|
-
"uname lookup failed"
|
|
1121
|
-
end
|
|
1122
|
-
|
|
1123
|
-
def self.uname_from_system_ver
|
|
1124
|
-
(`ver` || "").strip
|
|
1125
|
-
rescue Errno::ENOENT
|
|
1126
|
-
"ver executable not found"
|
|
1127
|
-
rescue Errno::ENOMEM # couldn't create subprocess
|
|
1128
|
-
"uname lookup failed"
|
|
1129
|
-
end
|
|
1130
|
-
|
|
1131
1100
|
AI_AGENTS = [
|
|
1101
|
+
# aiAgents: The beginning of the section generated from our OpenAPI spec
|
|
1132
1102
|
%w[ANTIGRAVITY_CLI_ALIAS antigravity],
|
|
1133
1103
|
%w[CLAUDECODE claude_code],
|
|
1134
1104
|
%w[CLINE_ACTIVE cline],
|
|
1135
1105
|
%w[CODEX_SANDBOX codex_cli],
|
|
1106
|
+
%w[CODEX_THREAD_ID codex_cli],
|
|
1107
|
+
%w[CODEX_SANDBOX_NETWORK_DISABLED codex_cli],
|
|
1108
|
+
%w[CODEX_CI codex_cli],
|
|
1136
1109
|
%w[CURSOR_AGENT cursor],
|
|
1137
1110
|
%w[GEMINI_CLI gemini_cli],
|
|
1138
1111
|
%w[OPENCODE open_code],
|
|
1112
|
+
# aiAgents: The end of the section generated from our OpenAPI spec
|
|
1139
1113
|
].freeze
|
|
1140
1114
|
|
|
1141
1115
|
def self.detect_ai_agent(env = ENV)
|
|
@@ -1145,11 +1119,7 @@ module Stripe
|
|
|
1145
1119
|
""
|
|
1146
1120
|
end
|
|
1147
1121
|
|
|
1148
|
-
def
|
|
1149
|
-
@uname = self.class.uname
|
|
1150
|
-
end
|
|
1151
|
-
|
|
1152
|
-
def user_agent
|
|
1122
|
+
def self.user_agent
|
|
1153
1123
|
lang_version = "#{RUBY_VERSION} p#{RUBY_PATCHLEVEL} " \
|
|
1154
1124
|
"(#{RUBY_RELEASE_DATE})"
|
|
1155
1125
|
|
|
@@ -1158,14 +1128,12 @@ module Stripe
|
|
|
1158
1128
|
bindings_version: Stripe::VERSION,
|
|
1159
1129
|
lang: "ruby",
|
|
1160
1130
|
lang_version: lang_version,
|
|
1161
|
-
platform: RUBY_PLATFORM,
|
|
1162
1131
|
engine: defined?(RUBY_ENGINE) ? RUBY_ENGINE : "",
|
|
1163
|
-
publisher: "stripe",
|
|
1164
|
-
uname: @uname,
|
|
1165
|
-
hostname: Socket.gethostname,
|
|
1166
1132
|
}.delete_if { |_k, v| v.nil? }
|
|
1167
1133
|
|
|
1168
|
-
|
|
1134
|
+
ua[:platform] = RUBY_PLATFORM if Stripe.enable_telemetry?
|
|
1135
|
+
|
|
1136
|
+
ai_agent = detect_ai_agent
|
|
1169
1137
|
ua[:ai_agent] = ai_agent unless ai_agent.empty?
|
|
1170
1138
|
|
|
1171
1139
|
ua
|
|
@@ -95,7 +95,7 @@ module Stripe
|
|
|
95
95
|
method: :get,
|
|
96
96
|
path: related_object.url,
|
|
97
97
|
base_address: :api,
|
|
98
|
-
opts: { stripe_context: context }
|
|
98
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
99
99
|
)
|
|
100
100
|
end
|
|
101
101
|
end
|
|
@@ -113,7 +113,7 @@ module Stripe
|
|
|
113
113
|
resp = @client.raw_request(
|
|
114
114
|
:get,
|
|
115
115
|
related_object.url,
|
|
116
|
-
opts: { stripe_context: context },
|
|
116
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
117
117
|
usage: ["fetch_related_object"]
|
|
118
118
|
)
|
|
119
119
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
method: :get,
|
|
34
34
|
path: related_object.url,
|
|
35
35
|
base_address: :api,
|
|
36
|
-
opts: { stripe_context: context }
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
resp = @client.raw_request(
|
|
52
52
|
:get,
|
|
53
53
|
related_object.url,
|
|
54
|
-
opts: { stripe_context: context },
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
55
|
usage: ["fetch_related_object"]
|
|
56
56
|
)
|
|
57
57
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
method: :get,
|
|
34
34
|
path: related_object.url,
|
|
35
35
|
base_address: :api,
|
|
36
|
-
opts: { stripe_context: context }
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
resp = @client.raw_request(
|
|
52
52
|
:get,
|
|
53
53
|
related_object.url,
|
|
54
|
-
opts: { stripe_context: context },
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
55
|
usage: ["fetch_related_object"]
|
|
56
56
|
)
|
|
57
57
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
method: :get,
|
|
34
34
|
path: related_object.url,
|
|
35
35
|
base_address: :api,
|
|
36
|
-
opts: { stripe_context: context }
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
resp = @client.raw_request(
|
|
52
52
|
:get,
|
|
53
53
|
related_object.url,
|
|
54
|
-
opts: { stripe_context: context },
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
55
|
usage: ["fetch_related_object"]
|
|
56
56
|
)
|
|
57
57
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
method: :get,
|
|
34
34
|
path: related_object.url,
|
|
35
35
|
base_address: :api,
|
|
36
|
-
opts: { stripe_context: context }
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
resp = @client.raw_request(
|
|
52
52
|
:get,
|
|
53
53
|
related_object.url,
|
|
54
|
-
opts: { stripe_context: context },
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
55
|
usage: ["fetch_related_object"]
|
|
56
56
|
)
|
|
57
57
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
method: :get,
|
|
34
34
|
path: related_object.url,
|
|
35
35
|
base_address: :api,
|
|
36
|
-
opts: { stripe_context: context }
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
resp = @client.raw_request(
|
|
52
52
|
:get,
|
|
53
53
|
related_object.url,
|
|
54
|
-
opts: { stripe_context: context },
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
55
|
usage: ["fetch_related_object"]
|
|
56
56
|
)
|
|
57
57
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
method: :get,
|
|
34
34
|
path: related_object.url,
|
|
35
35
|
base_address: :api,
|
|
36
|
-
opts: { stripe_context: context }
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
resp = @client.raw_request(
|
|
52
52
|
:get,
|
|
53
53
|
related_object.url,
|
|
54
|
-
opts: { stripe_context: context },
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
55
|
usage: ["fetch_related_object"]
|
|
56
56
|
)
|
|
57
57
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
method: :get,
|
|
34
34
|
path: related_object.url,
|
|
35
35
|
base_address: :api,
|
|
36
|
-
opts: { stripe_context: context }
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -51,7 +51,7 @@ module Stripe
|
|
|
51
51
|
resp = @client.raw_request(
|
|
52
52
|
:get,
|
|
53
53
|
related_object.url,
|
|
54
|
-
opts: { stripe_context: context },
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
55
|
usage: ["fetch_related_object"]
|
|
56
56
|
)
|
|
57
57
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
data/lib/stripe/events/v2_billing_rate_card_custom_pricing_unit_overage_rate_created_event.rb
CHANGED
|
@@ -39,7 +39,7 @@ module Stripe
|
|
|
39
39
|
method: :get,
|
|
40
40
|
path: related_object.url,
|
|
41
41
|
base_address: :api,
|
|
42
|
-
opts: { stripe_context: context }
|
|
42
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
43
43
|
)
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -57,7 +57,7 @@ module Stripe
|
|
|
57
57
|
resp = @client.raw_request(
|
|
58
58
|
:get,
|
|
59
59
|
related_object.url,
|
|
60
|
-
opts: { stripe_context: context },
|
|
60
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
61
61
|
usage: ["fetch_related_object"]
|
|
62
62
|
)
|
|
63
63
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -39,7 +39,7 @@ module Stripe
|
|
|
39
39
|
method: :get,
|
|
40
40
|
path: related_object.url,
|
|
41
41
|
base_address: :api,
|
|
42
|
-
opts: { stripe_context: context }
|
|
42
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
43
43
|
)
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -57,7 +57,7 @@ module Stripe
|
|
|
57
57
|
resp = @client.raw_request(
|
|
58
58
|
:get,
|
|
59
59
|
related_object.url,
|
|
60
|
-
opts: { stripe_context: context },
|
|
60
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
61
61
|
usage: ["fetch_related_object"]
|
|
62
62
|
)
|
|
63
63
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
method: :get,
|
|
16
16
|
path: related_object.url,
|
|
17
17
|
base_address: :api,
|
|
18
|
-
opts: { stripe_context: context }
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
attr_reader :related_object
|
|
@@ -34,7 +34,7 @@ module Stripe
|
|
|
34
34
|
resp = @client.raw_request(
|
|
35
35
|
:get,
|
|
36
36
|
related_object.url,
|
|
37
|
-
opts: { stripe_context: context },
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
38
|
usage: ["fetch_related_object"]
|
|
39
39
|
)
|
|
40
40
|
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|