stripe 19.2.0.pre.alpha.4 → 19.2.0.pre.alpha.6

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +8 -0
  3. data/lib/stripe/events/v2_money_management_financial_account_statement_created_event.rb +61 -0
  4. data/lib/stripe/events/v2_money_management_financial_account_statement_restated_event.rb +71 -0
  5. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +18 -1
  6. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +18 -1
  7. data/lib/stripe/object_types.rb +6 -0
  8. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +16 -0
  9. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +16 -0
  10. data/lib/stripe/params/invoice_create_params.rb +1 -38
  11. data/lib/stripe/params/invoice_update_params.rb +1 -38
  12. data/lib/stripe/params/issuing/dispute_close_params.rb +18 -0
  13. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +26 -0
  14. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +26 -0
  15. data/lib/stripe/params/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +26 -0
  16. data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +4 -1
  17. data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +4 -0
  18. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +10 -1
  19. data/lib/stripe/params/payment_intent_confirm_params.rb +8 -1
  20. data/lib/stripe/params/payment_intent_create_params.rb +8 -1
  21. data/lib/stripe/params/payment_intent_update_params.rb +8 -1
  22. data/lib/stripe/params/payment_location_capability_list_params.rb +16 -0
  23. data/lib/stripe/params/payment_location_capability_retrieve_params.rb +16 -0
  24. data/lib/stripe/params/payment_location_capability_update_params.rb +19 -0
  25. data/lib/stripe/params/payment_location_list_params.rb +13 -0
  26. data/lib/stripe/params/payment_location_update_params.rb +10 -1
  27. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +4 -1
  28. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +4 -0
  29. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +10 -1
  30. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +13 -2
  31. data/lib/stripe/params/payment_record_report_payment_params.rb +13 -2
  32. data/lib/stripe/params/radar/customer_evaluation_update_params.rb +12 -4
  33. data/lib/stripe/params/setup_intent_confirm_params.rb +8 -2
  34. data/lib/stripe/params/setup_intent_create_params.rb +8 -2
  35. data/lib/stripe/params/setup_intent_update_params.rb +8 -2
  36. data/lib/stripe/params/subscription_create_params.rb +1 -38
  37. data/lib/stripe/params/subscription_pause_params.rb +1 -1
  38. data/lib/stripe/params/subscription_update_params.rb +1 -38
  39. data/lib/stripe/params/test_helpers/issuing/dispute_close_params.rb +20 -0
  40. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_dispute_response_params.rb +28 -0
  41. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_response_params.rb +28 -0
  42. data/lib/stripe/params/test_helpers/issuing/dispute_simulate_network_lifecycle_pre_arbitration_submission_params.rb +28 -0
  43. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +43 -0
  44. data/lib/stripe/params/v2/core/fee_batch_retrieve_params.rb +10 -0
  45. data/lib/stripe/params/v2/core/fee_entry_list_params.rb +51 -0
  46. data/lib/stripe/params/v2/core/fee_entry_retrieve_params.rb +10 -0
  47. data/lib/stripe/params/v2/money_management/debit_dispute_create_params.rb +28 -0
  48. data/lib/stripe/params/v2/money_management/debit_dispute_list_params.rb +23 -0
  49. data/lib/stripe/params/v2/money_management/debit_dispute_retrieve_params.rb +10 -0
  50. data/lib/stripe/params/v2/money_management/financial_accounts/statement_list_params.rb +22 -0
  51. data/lib/stripe/params/v2/money_management/financial_accounts/statement_retrieve_params.rb +19 -0
  52. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -0
  53. data/lib/stripe/params.rb +2216 -964
  54. data/lib/stripe/railtie.rb +8 -0
  55. data/lib/stripe/resources/delegated_checkout/requested_session.rb +93 -1
  56. data/lib/stripe/resources/invoice.rb +1 -26
  57. data/lib/stripe/resources/invoice_item.rb +1 -34
  58. data/lib/stripe/resources/issuing/authorization.rb +20 -0
  59. data/lib/stripe/resources/issuing/dispute.rb +99 -0
  60. data/lib/stripe/resources/payment_intent.rb +102 -0
  61. data/lib/stripe/resources/payment_location.rb +6 -0
  62. data/lib/stripe/resources/payment_location_capability.rb +94 -0
  63. data/lib/stripe/resources/quote_preview_invoice.rb +1 -26
  64. data/lib/stripe/resources/radar/customer_evaluation.rb +2 -0
  65. data/lib/stripe/resources/subscription.rb +1 -70
  66. data/lib/stripe/resources/v2/core/fee_batch.rb +142 -0
  67. data/lib/stripe/resources/v2/core/fee_entry.rb +135 -0
  68. data/lib/stripe/resources/v2/money_management/debit_dispute.rb +113 -0
  69. data/lib/stripe/resources/v2/money_management/financial_account_statement.rb +101 -0
  70. data/lib/stripe/resources/v2/money_management/received_debit.rb +18 -0
  71. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  72. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  73. data/lib/stripe/resources.rb +2192 -666
  74. data/lib/stripe/services/payment_location_capability_service.rb +39 -0
  75. data/lib/stripe/services/payment_location_service.rb +11 -0
  76. data/lib/stripe/services/test_helpers/issuing/dispute_service.rb +54 -0
  77. data/lib/stripe/services/test_helpers/issuing_service.rb +2 -1
  78. data/lib/stripe/services/v1_services.rb +2 -1
  79. data/lib/stripe/services/v2/core/fee_batch_service.rb +32 -0
  80. data/lib/stripe/services/v2/core/fee_entry_service.rb +32 -0
  81. data/lib/stripe/services/v2/core_service.rb +3 -1
  82. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +43 -0
  83. data/lib/stripe/services/v2/money_management/financial_account_service.rb +8 -0
  84. data/lib/stripe/services/v2/money_management/financial_accounts/statement_service.rb +34 -0
  85. data/lib/stripe/services/v2/money_management_service.rb +2 -1
  86. data/lib/stripe/services.rb +841 -322
  87. data/lib/stripe/stripe_event_notification_handler.rb +12 -0
  88. data/lib/stripe/version.rb +1 -1
  89. data/lib/stripe.rb +25 -4
  90. data/rbi/stripe.rbi +1826 -460
  91. metadata +37 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07849eee2d7a02956b874284a500a8c5f9bedd26baf841f5333285a255d941f3'
4
- data.tar.gz: 959f95331d7025a32a1e9dc436f3828507c2da4994d97df232c21aa0de270c82
3
+ metadata.gz: 7cc235d5a2b5fc67ed6d0728bf33e00efbd6c86df22c584b720e11098bf5ec3d
4
+ data.tar.gz: 37d65bad4cff2c9a7875ecaed536cbdbca590e2748dc959cf422c8688bd730b9
5
5
  SHA512:
6
- metadata.gz: 338256a4214fbd103da28b3139df17c74d1e8dda250696615af1f9c9a36f5b1fbe3153a7a7dab01b93cd52c8cd4accbe32ddc9857aa77d0b7a5e6fd4b4827475
7
- data.tar.gz: 444bf63e759d097f1dd780999f8395d3892d59226062dcdd5d1052304b9e329f09699a33d05e07373a8c8c605cd109c93ed7b7ac0013b3054edaee1d32b9698d
6
+ metadata.gz: 8f17d29aff4d5d81b6db98815cda0dc35a96bbab85fda09a104d315cf1b70f3fb0a9aa3edbbb255422b07a65c66e6a4d7febbd9dee5d215a263124bca106edbb
7
+ data.tar.gz: 4ff61d0a8404bf74bc718b4d62f82a768ee2deba37777f46a9eda0a6110b16ebdcc4c6d307b53547be7e4fd690990e9f58693990df462e44ed80ac07dadfa6d2
@@ -495,6 +495,10 @@ module Stripe
495
495
  Events::V2MoneyManagementAdjustmentCreatedEvent,
496
496
  Events::V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
497
497
  Events::V2MoneyManagementFinancialAccountCreatedEvent,
498
+ Events::V2MoneyManagementFinancialAccountStatementCreatedEvent.lookup_type =>
499
+ Events::V2MoneyManagementFinancialAccountStatementCreatedEvent,
500
+ Events::V2MoneyManagementFinancialAccountStatementRestatedEvent.lookup_type =>
501
+ Events::V2MoneyManagementFinancialAccountStatementRestatedEvent,
498
502
  Events::V2MoneyManagementFinancialAccountUpdatedEvent.lookup_type =>
499
503
  Events::V2MoneyManagementFinancialAccountUpdatedEvent,
500
504
  Events::V2MoneyManagementFinancialAddressActivatedEvent.lookup_type =>
@@ -1245,6 +1249,10 @@ module Stripe
1245
1249
  Events::V2MoneyManagementAdjustmentCreatedEventNotification,
1246
1250
  Events::V2MoneyManagementFinancialAccountCreatedEventNotification.lookup_type =>
1247
1251
  Events::V2MoneyManagementFinancialAccountCreatedEventNotification,
1252
+ Events::V2MoneyManagementFinancialAccountStatementCreatedEventNotification.lookup_type =>
1253
+ Events::V2MoneyManagementFinancialAccountStatementCreatedEventNotification,
1254
+ Events::V2MoneyManagementFinancialAccountStatementRestatedEventNotification.lookup_type =>
1255
+ Events::V2MoneyManagementFinancialAccountStatementRestatedEventNotification,
1248
1256
  Events::V2MoneyManagementFinancialAccountUpdatedEventNotification.lookup_type =>
1249
1257
  Events::V2MoneyManagementFinancialAccountUpdatedEventNotification,
1250
1258
  Events::V2MoneyManagementFinancialAddressActivatedEventNotification.lookup_type =>
@@ -0,0 +1,61 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Financial Account Statement is created and ready for download.
7
+ class V2MoneyManagementFinancialAccountStatementCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.money_management.financial_account_statement.created"
10
+ end
11
+
12
+ class V2MoneyManagementFinancialAccountStatementCreatedEventData < ::Stripe::StripeObject
13
+ # The ID of the Financial Account this statement belongs to.
14
+ attr_reader :financial_account
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
23
+ end
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = { data: V2MoneyManagementFinancialAccountStatementCreatedEventData }
27
+ end
28
+ attr_reader :data, :related_object
29
+
30
+ # Retrieves the related object from the API. Makes an API request on every call.
31
+ def fetch_related_object
32
+ _request(
33
+ method: :get,
34
+ path: related_object.url,
35
+ base_address: :api,
36
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
37
+ )
38
+ end
39
+ end
40
+
41
+ # Occurs when a Financial Account Statement is created and ready for download.
42
+ class V2MoneyManagementFinancialAccountStatementCreatedEventNotification < Stripe::V2::Core::EventNotification
43
+ def self.lookup_type
44
+ "v2.money_management.financial_account_statement.created"
45
+ end
46
+
47
+ attr_reader :related_object
48
+
49
+ # Retrieves the FinancialAccountStatement related to this EventNotification from the Stripe API. Makes an API request on every call.
50
+ def fetch_related_object
51
+ resp = @client.raw_request(
52
+ :get,
53
+ related_object.url,
54
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
55
+ usage: ["fetch_related_object"]
56
+ )
57
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,71 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Financial Account Statement has been restated.
7
+ # A restatement occurs when a new statement is generated for a period
8
+ # that already had an existing statement. The related object references
9
+ # the original statement that was restated. The new replacement statement
10
+ # will also fire a FinancialAccountStatementCreated event.
11
+ class V2MoneyManagementFinancialAccountStatementRestatedEvent < Stripe::V2::Core::Event
12
+ def self.lookup_type
13
+ "v2.money_management.financial_account_statement.restated"
14
+ end
15
+
16
+ class V2MoneyManagementFinancialAccountStatementRestatedEventData < ::Stripe::StripeObject
17
+ # The ID of the Financial Account this statement belongs to.
18
+ attr_reader :financial_account
19
+ # The ID of the new statement that replaces the original.
20
+ attr_reader :restatement_id
21
+
22
+ def self.inner_class_types
23
+ @inner_class_types = {}
24
+ end
25
+
26
+ def self.field_remappings
27
+ @field_remappings = {}
28
+ end
29
+ end
30
+
31
+ def self.inner_class_types
32
+ @inner_class_types = { data: V2MoneyManagementFinancialAccountStatementRestatedEventData }
33
+ end
34
+ attr_reader :data, :related_object
35
+
36
+ # Retrieves the related object from the API. Makes an API request on every call.
37
+ def fetch_related_object
38
+ _request(
39
+ method: :get,
40
+ path: related_object.url,
41
+ base_address: :api,
42
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
43
+ )
44
+ end
45
+ end
46
+
47
+ # Occurs when a Financial Account Statement has been restated.
48
+ # A restatement occurs when a new statement is generated for a period
49
+ # that already had an existing statement. The related object references
50
+ # the original statement that was restated. The new replacement statement
51
+ # will also fire a FinancialAccountStatementCreated event.
52
+ class V2MoneyManagementFinancialAccountStatementRestatedEventNotification < Stripe::V2::Core::EventNotification
53
+ def self.lookup_type
54
+ "v2.money_management.financial_account_statement.restated"
55
+ end
56
+
57
+ attr_reader :related_object
58
+
59
+ # Retrieves the FinancialAccountStatement related to this EventNotification from the Stripe API. Makes an API request on every call.
60
+ def fetch_related_object
61
+ resp = @client.raw_request(
62
+ :get,
63
+ related_object.url,
64
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
65
+ usage: ["fetch_related_object"]
66
+ )
67
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
68
+ end
69
+ end
70
+ end
71
+ end
@@ -9,6 +9,24 @@ module Stripe
9
9
  "v2.payments.off_session_payment.attempt_failed"
10
10
  end
11
11
 
12
+ class V2PaymentsOffSessionPaymentAttemptFailedEventData < ::Stripe::StripeObject
13
+ # The ID of the payment attempt record associated with this failed attempt.
14
+ attr_reader :payment_attempt_record
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
23
+ end
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = { data: V2PaymentsOffSessionPaymentAttemptFailedEventData }
27
+ end
28
+ attr_reader :data, :related_object
29
+
12
30
  # Retrieves the related object from the API. Makes an API request on every call.
13
31
  def fetch_related_object
14
32
  _request(
@@ -18,7 +36,6 @@ module Stripe
18
36
  opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
37
  )
20
38
  end
21
- attr_reader :related_object
22
39
  end
23
40
 
24
41
  # Sent after a failed attempt if there are still retries available on the OffSessionPayment.
@@ -9,6 +9,24 @@ module Stripe
9
9
  "v2.payments.off_session_payment.failed"
10
10
  end
11
11
 
12
+ class V2PaymentsOffSessionPaymentFailedEventData < ::Stripe::StripeObject
13
+ # The ID of the payment attempt record associated with this terminal failure. Equal to the `latest_payment_attempt_record` on the Off-Session Payment object.
14
+ attr_reader :payment_attempt_record
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
23
+ end
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = { data: V2PaymentsOffSessionPaymentFailedEventData }
27
+ end
28
+ attr_reader :data, :related_object
29
+
12
30
  # Retrieves the related object from the API. Makes an API request on every call.
13
31
  def fetch_related_object
14
32
  _request(
@@ -18,7 +36,6 @@ module Stripe
18
36
  opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
37
  )
20
38
  end
21
- attr_reader :related_object
22
39
  end
23
40
 
24
41
  # Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
@@ -118,6 +118,7 @@ module Stripe
118
118
  PaymentIntentAmountDetailsLineItem.object_name => PaymentIntentAmountDetailsLineItem,
119
119
  PaymentLink.object_name => PaymentLink,
120
120
  PaymentLocation.object_name => PaymentLocation,
121
+ PaymentLocationCapability.object_name => PaymentLocationCapability,
121
122
  PaymentMethod.object_name => PaymentMethod,
122
123
  PaymentMethodBalance.object_name => PaymentMethodBalance,
123
124
  PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
@@ -254,6 +255,8 @@ module Stripe
254
255
  V2::Core::ConnectionSession.object_name => V2::Core::ConnectionSession,
255
256
  V2::Core::Event.object_name => V2::Core::Event,
256
257
  V2::Core::EventDestination.object_name => V2::Core::EventDestination,
258
+ V2::Core::FeeBatch.object_name => V2::Core::FeeBatch,
259
+ V2::Core::FeeEntry.object_name => V2::Core::FeeEntry,
257
260
  V2::Core::Vault::GbBankAccount.object_name => V2::Core::Vault::GbBankAccount,
258
261
  V2::Core::Vault::UsBankAccount.object_name => V2::Core::Vault::UsBankAccount,
259
262
  V2::Data::Analytics::MetricQueryResult.object_name => V2::Data::Analytics::MetricQueryResult,
@@ -267,7 +270,10 @@ module Stripe
267
270
  V2::Iam::ApiKey.object_name => V2::Iam::ApiKey,
268
271
  V2::MoneyManagement::Adjustment.object_name => V2::MoneyManagement::Adjustment,
269
272
  V2::MoneyManagement::CurrencyConversion.object_name => V2::MoneyManagement::CurrencyConversion,
273
+ V2::MoneyManagement::DebitDispute.object_name => V2::MoneyManagement::DebitDispute,
270
274
  V2::MoneyManagement::FinancialAccount.object_name => V2::MoneyManagement::FinancialAccount,
275
+ V2::MoneyManagement::FinancialAccountStatement.object_name =>
276
+ V2::MoneyManagement::FinancialAccountStatement,
271
277
  V2::MoneyManagement::FinancialAddress.object_name => V2::MoneyManagement::FinancialAddress,
272
278
  V2::MoneyManagement::InboundTransfer.object_name => V2::MoneyManagement::InboundTransfer,
273
279
  V2::MoneyManagement::OutboundPayment.object_name => V2::MoneyManagement::OutboundPayment,
@@ -69,6 +69,18 @@ module Stripe
69
69
  end
70
70
  end
71
71
 
72
+ class Discounts < ::Stripe::RequestParams
73
+ # Array of discount codes to apply.
74
+ attr_accessor :codes
75
+ # Whether to enforce strict eligibility for discount codes. Defaults to true. When false, invalid codes are returned in the discounts.invalid array instead of raising an error.
76
+ attr_accessor :enforce_strict_eligibility
77
+
78
+ def initialize(codes: nil, enforce_strict_eligibility: nil)
79
+ @codes = codes
80
+ @enforce_strict_eligibility = enforce_strict_eligibility
81
+ end
82
+ end
83
+
72
84
  class FulfillmentDetails < ::Stripe::RequestParams
73
85
  class Address < ::Stripe::RequestParams
74
86
  # City, district, suburb, town, or village.
@@ -163,6 +175,8 @@ module Stripe
163
175
  attr_accessor :currency
164
176
  # The customer for this requested session.
165
177
  attr_accessor :customer
178
+ # The discount codes to apply to this requested session.
179
+ attr_accessor :discounts
166
180
  # Specifies which fields in the response should be expanded.
167
181
  attr_accessor :expand
168
182
  # The details of the fulfillment.
@@ -186,6 +200,7 @@ module Stripe
186
200
  affiliate_attribution: nil,
187
201
  currency: nil,
188
202
  customer: nil,
203
+ discounts: nil,
189
204
  expand: nil,
190
205
  fulfillment_details: nil,
191
206
  line_item_details: nil,
@@ -199,6 +214,7 @@ module Stripe
199
214
  @affiliate_attribution = affiliate_attribution
200
215
  @currency = currency
201
216
  @customer = customer
217
+ @discounts = discounts
202
218
  @expand = expand
203
219
  @fulfillment_details = fulfillment_details
204
220
  @line_item_details = line_item_details
@@ -4,6 +4,18 @@
4
4
  module Stripe
5
5
  module DelegatedCheckout
6
6
  class RequestedSessionUpdateParams < ::Stripe::RequestParams
7
+ class Discounts < ::Stripe::RequestParams
8
+ # Array of discount codes to apply. Pass an empty value to remove all applied discounts.
9
+ attr_accessor :codes
10
+ # Whether to enforce strict eligibility for discount codes. Defaults to true. When false, invalid codes are returned in the discounts.invalid array instead of raising an error.
11
+ attr_accessor :enforce_strict_eligibility
12
+
13
+ def initialize(codes: nil, enforce_strict_eligibility: nil)
14
+ @codes = codes
15
+ @enforce_strict_eligibility = enforce_strict_eligibility
16
+ end
17
+ end
18
+
7
19
  class FulfillmentDetails < ::Stripe::RequestParams
8
20
  class Address < ::Stripe::RequestParams
9
21
  # City, district, suburb, town, or village.
@@ -163,6 +175,8 @@ module Stripe
163
175
  @excluded_payment_method_types = excluded_payment_method_types
164
176
  end
165
177
  end
178
+ # The discount codes to apply to this requested session. Pass an empty value to remove all applied discounts.
179
+ attr_accessor :discounts
166
180
  # Specifies which fields in the response should be expanded.
167
181
  attr_accessor :expand
168
182
  # The details of the fulfillment.
@@ -179,6 +193,7 @@ module Stripe
179
193
  attr_accessor :shared_metadata
180
194
 
181
195
  def initialize(
196
+ discounts: nil,
182
197
  expand: nil,
183
198
  fulfillment_details: nil,
184
199
  line_item_details: nil,
@@ -187,6 +202,7 @@ module Stripe
187
202
  payment_method_options: nil,
188
203
  shared_metadata: nil
189
204
  )
205
+ @discounts = discounts
190
206
  @expand = expand
191
207
  @fulfillment_details = fulfillment_details
192
208
  @line_item_details = line_item_details
@@ -198,44 +198,7 @@ module Stripe
198
198
  end
199
199
  end
200
200
 
201
- class CheckScan < ::Stripe::RequestParams
202
- class CheckDepositAddress < ::Stripe::RequestParams
203
- # Attribute for param field city
204
- attr_accessor :city
205
- # Attribute for param field country
206
- attr_accessor :country
207
- # Attribute for param field line1
208
- attr_accessor :line1
209
- # Attribute for param field line2
210
- attr_accessor :line2
211
- # Attribute for param field postal_code
212
- attr_accessor :postal_code
213
- # Attribute for param field state
214
- attr_accessor :state
215
-
216
- def initialize(
217
- city: nil,
218
- country: nil,
219
- line1: nil,
220
- line2: nil,
221
- postal_code: nil,
222
- state: nil
223
- )
224
- @city = city
225
- @country = country
226
- @line1 = line1
227
- @line2 = line2
228
- @postal_code = postal_code
229
- @state = state
230
- end
231
- end
232
- # Attribute for param field check_deposit_address
233
- attr_accessor :check_deposit_address
234
-
235
- def initialize(check_deposit_address: nil)
236
- @check_deposit_address = check_deposit_address
237
- end
238
- end
201
+ class CheckScan < ::Stripe::RequestParams; end
239
202
 
240
203
  class CustomerBalance < ::Stripe::RequestParams
241
204
  class BankTransfer < ::Stripe::RequestParams
@@ -186,44 +186,7 @@ module Stripe
186
186
  end
187
187
  end
188
188
 
189
- class CheckScan < ::Stripe::RequestParams
190
- class CheckDepositAddress < ::Stripe::RequestParams
191
- # Attribute for param field city
192
- attr_accessor :city
193
- # Attribute for param field country
194
- attr_accessor :country
195
- # Attribute for param field line1
196
- attr_accessor :line1
197
- # Attribute for param field line2
198
- attr_accessor :line2
199
- # Attribute for param field postal_code
200
- attr_accessor :postal_code
201
- # Attribute for param field state
202
- attr_accessor :state
203
-
204
- def initialize(
205
- city: nil,
206
- country: nil,
207
- line1: nil,
208
- line2: nil,
209
- postal_code: nil,
210
- state: nil
211
- )
212
- @city = city
213
- @country = country
214
- @line1 = line1
215
- @line2 = line2
216
- @postal_code = postal_code
217
- @state = state
218
- end
219
- end
220
- # Attribute for param field check_deposit_address
221
- attr_accessor :check_deposit_address
222
-
223
- def initialize(check_deposit_address: nil)
224
- @check_deposit_address = check_deposit_address
225
- end
226
- end
189
+ class CheckScan < ::Stripe::RequestParams; end
227
190
 
228
191
  class CustomerBalance < ::Stripe::RequestParams
229
192
  class BankTransfer < ::Stripe::RequestParams
@@ -0,0 +1,18 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Issuing
6
+ class DisputeCloseParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+ # Whether to close the dispute as `won` or `lost`.
10
+ attr_accessor :status
11
+
12
+ def initialize(expand: nil, status: nil)
13
+ @expand = expand
14
+ @status = status
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Issuing
6
+ class DisputeSimulateNetworkLifecycleDisputeResponseParams < ::Stripe::RequestParams
7
+ class MerchantEvidenceFiles < ::Stripe::RequestParams
8
+ # How many simulated merchant evidence file tokens to attach (between 1 and 12).
9
+ attr_accessor :number_to_generate
10
+
11
+ def initialize(number_to_generate: nil)
12
+ @number_to_generate = number_to_generate
13
+ end
14
+ end
15
+ # Specifies which fields in the response should be expanded.
16
+ attr_accessor :expand
17
+ # Controls the acquiring merchant's simulated submitted evidence files for the dispute response stage.
18
+ attr_accessor :merchant_evidence_files
19
+
20
+ def initialize(expand: nil, merchant_evidence_files: nil)
21
+ @expand = expand
22
+ @merchant_evidence_files = merchant_evidence_files
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Issuing
6
+ class DisputeSimulateNetworkLifecyclePreArbitrationResponseParams < ::Stripe::RequestParams
7
+ class MerchantEvidenceFiles < ::Stripe::RequestParams
8
+ # How many simulated merchant evidence file tokens to attach (between 1 and 12).
9
+ attr_accessor :number_to_generate
10
+
11
+ def initialize(number_to_generate: nil)
12
+ @number_to_generate = number_to_generate
13
+ end
14
+ end
15
+ # Specifies which fields in the response should be expanded.
16
+ attr_accessor :expand
17
+ # Controls the acquiring merchant's simulated submitted evidence files for the pre-arbitration response stage.
18
+ attr_accessor :merchant_evidence_files
19
+
20
+ def initialize(expand: nil, merchant_evidence_files: nil)
21
+ @expand = expand
22
+ @merchant_evidence_files = merchant_evidence_files
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Issuing
6
+ class DisputeSimulateNetworkLifecyclePreArbitrationSubmissionParams < ::Stripe::RequestParams
7
+ class MerchantEvidenceFiles < ::Stripe::RequestParams
8
+ # How many simulated merchant evidence file tokens to attach (between 1 and 12).
9
+ attr_accessor :number_to_generate
10
+
11
+ def initialize(number_to_generate: nil)
12
+ @number_to_generate = number_to_generate
13
+ end
14
+ end
15
+ # Specifies which fields in the response should be expanded.
16
+ attr_accessor :expand
17
+ # Controls the acquiring merchant's simulated submitted evidence files for the pre-arbitration submission stage.
18
+ attr_accessor :merchant_evidence_files
19
+
20
+ def initialize(expand: nil, merchant_evidence_files: nil)
21
+ @expand = expand
22
+ @merchant_evidence_files = merchant_evidence_files
23
+ end
24
+ end
25
+ end
26
+ end
@@ -9,11 +9,14 @@ module Stripe
9
9
  attr_accessor :expand
10
10
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
11
11
  attr_accessor :metadata
12
+ # Payment evaluations associated with this reported payment.
13
+ attr_accessor :payment_evaluations
12
14
 
13
- def initialize(canceled_at: nil, expand: nil, metadata: nil)
15
+ def initialize(canceled_at: nil, expand: nil, metadata: nil, payment_evaluations: nil)
14
16
  @canceled_at = canceled_at
15
17
  @expand = expand
16
18
  @metadata = metadata
19
+ @payment_evaluations = payment_evaluations
17
20
  end
18
21
  end
19
22
  end
@@ -30,6 +30,8 @@ module Stripe
30
30
  attr_accessor :failure_code
31
31
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
32
32
  attr_accessor :metadata
33
+ # Payment evaluations associated with this reported payment.
34
+ attr_accessor :payment_evaluations
33
35
  # Processor information for this payment.
34
36
  attr_accessor :processor_details
35
37
 
@@ -38,12 +40,14 @@ module Stripe
38
40
  failed_at: nil,
39
41
  failure_code: nil,
40
42
  metadata: nil,
43
+ payment_evaluations: nil,
41
44
  processor_details: nil
42
45
  )
43
46
  @expand = expand
44
47
  @failed_at = failed_at
45
48
  @failure_code = failure_code
46
49
  @metadata = metadata
50
+ @payment_evaluations = payment_evaluations
47
51
  @processor_details = processor_details
48
52
  end
49
53
  end
@@ -28,13 +28,22 @@ module Stripe
28
28
  attr_accessor :guaranteed_at
29
29
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
30
30
  attr_accessor :metadata
31
+ # Payment evaluations associated with this reported payment.
32
+ attr_accessor :payment_evaluations
31
33
  # Processor information for this payment.
32
34
  attr_accessor :processor_details
33
35
 
34
- def initialize(expand: nil, guaranteed_at: nil, metadata: nil, processor_details: nil)
36
+ def initialize(
37
+ expand: nil,
38
+ guaranteed_at: nil,
39
+ metadata: nil,
40
+ payment_evaluations: nil,
41
+ processor_details: nil
42
+ )
35
43
  @expand = expand
36
44
  @guaranteed_at = guaranteed_at
37
45
  @metadata = metadata
46
+ @payment_evaluations = payment_evaluations
38
47
  @processor_details = processor_details
39
48
  end
40
49
  end
@@ -297,10 +297,13 @@ module Stripe
297
297
  class PaymentDetails < ::Stripe::RequestParams
298
298
  class Benefit < ::Stripe::RequestParams
299
299
  class FrMealVoucher < ::Stripe::RequestParams
300
+ # Whether to enable meal voucher benefit for this payment.
301
+ attr_accessor :enabled
300
302
  # The 14-digit SIRET of the meal voucher acceptor.
301
303
  attr_accessor :siret
302
304
 
303
- def initialize(siret: nil)
305
+ def initialize(enabled: nil, siret: nil)
306
+ @enabled = enabled
304
307
  @siret = siret
305
308
  end
306
309
  end
@@ -2179,6 +2182,8 @@ module Stripe
2179
2182
  attr_accessor :flight
2180
2183
  # Flight data for this PaymentIntent.
2181
2184
  attr_accessor :flight_data
2185
+ # The ID of the Payment Location for this PaymentIntent.
2186
+ attr_accessor :location
2182
2187
  # Lodging reservation details for this PaymentIntent
2183
2188
  attr_accessor :lodging
2184
2189
  # Lodging data for this PaymentIntent.
@@ -2201,6 +2206,7 @@ module Stripe
2201
2206
  fleet_data: nil,
2202
2207
  flight: nil,
2203
2208
  flight_data: nil,
2209
+ location: nil,
2204
2210
  lodging: nil,
2205
2211
  lodging_data: nil,
2206
2212
  money_services: nil,
@@ -2215,6 +2221,7 @@ module Stripe
2215
2221
  @fleet_data = fleet_data
2216
2222
  @flight = flight
2217
2223
  @flight_data = flight_data
2224
+ @location = location
2218
2225
  @lodging = lodging
2219
2226
  @lodging_data = lodging_data
2220
2227
  @money_services = money_services