stripe 18.5.0.pre.alpha.2 → 18.5.0.pre.alpha.3
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 +7 -1
- 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 +1 -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/radar/issuing_authorization_evaluation_create_params.rb +197 -0
- 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 +1 -0
- data/lib/stripe/resources/dispute.rb +2 -0
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -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.rb +1 -0
- data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +3 -1
- data/lib/stripe/services.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +3268 -112
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85f5f2c6fac61004140fd3d15063f354d8df01ad937ac776555a22e67728a7df
|
|
4
|
+
data.tar.gz: c620ae2a43eac1f165b4b343fcf859e9fb5ecd92a714d69c9d40f4ff79d16f98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb5daaf23613df62254606d5a21bfba6e9112cf2795378d0291ea884f37dc6dffb8a8d3f61d079d35c303336e5a885a020e9b3bd73a6ddf856b30476ccdea76d
|
|
7
|
+
data.tar.gz: 42aa4f19293b9e36b4bcd69dbc010c66a88d4e410c1aa7ce4d0b7bbf4ad375903dcfdf3f1d8c2a83867bb568a20562d3b079230f4052208891ef7f5496a71bb4
|
data/lib/stripe/api_requestor.rb
CHANGED
|
@@ -110,7 +110,7 @@ module Stripe
|
|
|
110
110
|
return false if num_retries >= config.max_network_retries
|
|
111
111
|
|
|
112
112
|
case error
|
|
113
|
-
when Net::OpenTimeout, Net::ReadTimeout
|
|
113
|
+
when Net::OpenTimeout, Net::ReadTimeout, Net::HTTPFatalError
|
|
114
114
|
# Retry on timeout-related problems (either on open or read).
|
|
115
115
|
true
|
|
116
116
|
when EOFError, Errno::ECONNREFUSED, Errno::ECONNRESET, # rubocop:todo Lint/DuplicateBranch
|
|
@@ -350,6 +350,7 @@ module Stripe
|
|
|
350
350
|
Errno::ETIMEDOUT => ERROR_MESSAGE_TIMEOUT_CONNECT,
|
|
351
351
|
SocketError => ERROR_MESSAGE_CONNECTION,
|
|
352
352
|
|
|
353
|
+
Net::HTTPFatalError => ERROR_MESSAGE_CONNECTION,
|
|
353
354
|
Net::OpenTimeout => ERROR_MESSAGE_TIMEOUT_CONNECT,
|
|
354
355
|
Net::ReadTimeout => ERROR_MESSAGE_TIMEOUT_READ,
|
|
355
356
|
|
|
@@ -1129,13 +1130,18 @@ module Stripe
|
|
|
1129
1130
|
end
|
|
1130
1131
|
|
|
1131
1132
|
AI_AGENTS = [
|
|
1133
|
+
# aiAgents: The beginning of the section generated from our OpenAPI spec
|
|
1132
1134
|
%w[ANTIGRAVITY_CLI_ALIAS antigravity],
|
|
1133
1135
|
%w[CLAUDECODE claude_code],
|
|
1134
1136
|
%w[CLINE_ACTIVE cline],
|
|
1135
1137
|
%w[CODEX_SANDBOX codex_cli],
|
|
1138
|
+
%w[CODEX_THREAD_ID codex_cli],
|
|
1139
|
+
%w[CODEX_SANDBOX_NETWORK_DISABLED codex_cli],
|
|
1140
|
+
%w[CODEX_CI codex_cli],
|
|
1136
1141
|
%w[CURSOR_AGENT cursor],
|
|
1137
1142
|
%w[GEMINI_CLI gemini_cli],
|
|
1138
1143
|
%w[OPENCODE open_code],
|
|
1144
|
+
# aiAgents: The end of the section generated from our OpenAPI spec
|
|
1139
1145
|
].freeze
|
|
1140
1146
|
|
|
1141
1147
|
def self.detect_ai_agent(env = ENV)
|
|
@@ -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))
|
|
@@ -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))
|