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.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +7 -1
  3. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +2 -2
  4. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +2 -2
  5. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +2 -2
  6. data/lib/stripe/events/v2_billing_cadence_created_event.rb +2 -2
  7. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +2 -2
  8. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +2 -2
  9. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +2 -2
  10. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +2 -2
  11. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +2 -2
  12. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +2 -2
  13. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +2 -2
  14. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +2 -2
  15. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +2 -2
  16. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +2 -2
  17. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +2 -2
  18. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +2 -2
  19. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +2 -2
  20. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +2 -2
  21. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +2 -2
  22. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +2 -2
  23. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +2 -2
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +2 -2
  25. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +2 -2
  26. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +2 -2
  27. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +2 -2
  28. data/lib/stripe/events/v2_billing_rate_card_custom_pricing_unit_overage_rate_created_event.rb +2 -2
  29. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +2 -2
  30. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +2 -2
  31. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +2 -2
  32. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +2 -2
  33. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +2 -2
  34. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +2 -2
  35. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +2 -2
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +2 -2
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +2 -2
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +2 -2
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +2 -2
  40. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +2 -2
  41. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +2 -2
  42. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  43. data/lib/stripe/events/v2_core_account_created_event.rb +2 -2
  44. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +2 -2
  45. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +2 -2
  46. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +2 -2
  47. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +2 -2
  48. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +2 -2
  49. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +2 -2
  50. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +2 -2
  51. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +2 -2
  52. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +2 -2
  53. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +2 -2
  54. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  55. data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +2 -2
  56. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +2 -2
  57. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +2 -2
  58. data/lib/stripe/events/v2_core_account_person_created_event.rb +2 -2
  59. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +2 -2
  60. data/lib/stripe/events/v2_core_account_person_updated_event.rb +2 -2
  61. data/lib/stripe/events/v2_core_account_updated_event.rb +2 -2
  62. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +2 -2
  63. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +2 -2
  64. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +2 -2
  65. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +2 -2
  66. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +2 -2
  67. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +2 -2
  68. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +2 -2
  69. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +2 -2
  70. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +2 -2
  71. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +2 -2
  72. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +2 -2
  73. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +2 -2
  74. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +2 -2
  75. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +2 -2
  76. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +2 -2
  77. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +2 -2
  78. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +2 -2
  79. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +2 -2
  80. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +2 -2
  81. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +2 -2
  82. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +2 -2
  83. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +2 -2
  84. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +2 -2
  85. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +2 -2
  86. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +2 -2
  87. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +2 -2
  88. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +2 -2
  89. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +2 -2
  90. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +2 -2
  91. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +2 -2
  92. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +2 -2
  93. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +2 -2
  94. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +2 -2
  95. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +2 -2
  96. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +2 -2
  97. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +2 -2
  98. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +2 -2
  99. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +2 -2
  100. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +2 -2
  101. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +2 -2
  102. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +2 -2
  103. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +2 -2
  104. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +2 -2
  105. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +2 -2
  106. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +2 -2
  107. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +2 -2
  108. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +2 -2
  109. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -2
  110. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +2 -2
  111. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +2 -2
  112. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +2 -2
  113. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +2 -2
  114. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +2 -2
  115. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +2 -2
  116. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +2 -2
  117. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +2 -2
  118. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +2 -2
  119. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +2 -2
  120. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +2 -2
  121. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +2 -2
  122. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +2 -2
  123. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +2 -2
  124. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +2 -2
  125. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +2 -2
  126. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +2 -2
  127. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +2 -2
  128. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +2 -2
  129. data/lib/stripe/object_types.rb +1 -0
  130. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +3 -3
  131. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +3 -3
  132. data/lib/stripe/params/radar/issuing_authorization_evaluation_create_params.rb +197 -0
  133. data/lib/stripe/params/v2/core/account_create_params.rb +527 -5
  134. data/lib/stripe/params/v2/core/account_update_params.rb +527 -5
  135. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +84 -0
  136. data/lib/stripe/params.rb +1 -0
  137. data/lib/stripe/resources/dispute.rb +2 -0
  138. data/lib/stripe/resources/invoice_item.rb +2 -0
  139. data/lib/stripe/resources/radar/issuing_authorization_evaluation.rb +245 -0
  140. data/lib/stripe/resources/v2/core/account.rb +715 -3
  141. data/lib/stripe/resources/v2/core/event_notification.rb +2 -1
  142. data/lib/stripe/resources.rb +1 -0
  143. data/lib/stripe/services/radar/issuing_authorization_evaluation_service.rb +19 -0
  144. data/lib/stripe/services/radar_service.rb +3 -1
  145. data/lib/stripe/services.rb +1 -0
  146. data/lib/stripe/version.rb +1 -1
  147. data/rbi/stripe.rbi +3268 -112
  148. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 889bcc035b68b5aab0a3a6fefc81a2161d397b8c54796f03491b296253d8999b
4
- data.tar.gz: 808eb12a8acbed40ea9f0b89155d11026a4a963a0ed8b928eb3becbaae28a222
3
+ metadata.gz: 85f5f2c6fac61004140fd3d15063f354d8df01ad937ac776555a22e67728a7df
4
+ data.tar.gz: c620ae2a43eac1f165b4b343fcf859e9fb5ecd92a714d69c9d40f4ff79d16f98
5
5
  SHA512:
6
- metadata.gz: f57e3de39673830952d0864947ee06525c9ad4b34cb395e56f3019eb4be8819ecb75f96a71f038a5683a929324abbd95d0e8555d1dc1e52edabb2fc75ed34a67
7
- data.tar.gz: 69dbf016c00f9d1594e63f82e7d0d0cb26950d0b565d0f08e953082df54feb88e5bcf814613cd2cb61464f0ffbf0ec85939283a0387fa10c3db4ae0c2bf4d9d5
6
+ metadata.gz: fb5daaf23613df62254606d5a21bfba6e9112cf2795378d0291ea884f37dc6dffb8a8d3f61d079d35c303336e5a885a020e9b3bd73a6ddf856b30476ccdea76d
7
+ data.tar.gz: 42aa4f19293b9e36b4bcd69dbc010c66a88d4e410c1aa7ce4d0b7bbf4ad375903dcfdf3f1d8c2a83867bb568a20562d3b079230f4052208891ef7f5496a71bb4
@@ -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))
@@ -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))