stripe 19.1.0 → 19.2.0

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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -0
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +16 -0
  5. data/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb +44 -0
  6. data/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb +44 -0
  7. data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb +44 -0
  8. data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb +44 -0
  9. data/lib/stripe/object_types.rb +1 -0
  10. data/lib/stripe/params/account_create_params.rb +26 -0
  11. data/lib/stripe/params/account_update_params.rb +26 -0
  12. data/lib/stripe/params/balance_settings_update_params.rb +42 -2
  13. data/lib/stripe/params/charge_create_params.rb +4 -1
  14. data/lib/stripe/params/checkout/session_create_params.rb +28 -15
  15. data/lib/stripe/params/confirmation_token_create_params.rb +11 -1
  16. data/lib/stripe/params/invoice_create_preview_params.rb +60 -0
  17. data/lib/stripe/params/payment_intent_capture_params.rb +2 -2
  18. data/lib/stripe/params/payment_intent_confirm_params.rb +38 -5
  19. data/lib/stripe/params/payment_intent_create_params.rb +65 -6
  20. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -2
  21. data/lib/stripe/params/payment_intent_update_params.rb +58 -5
  22. data/lib/stripe/params/payment_link_create_params.rb +30 -1
  23. data/lib/stripe/params/payment_link_update_params.rb +29 -0
  24. data/lib/stripe/params/payment_method_configuration_create_params.rb +43 -1
  25. data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
  26. data/lib/stripe/params/payment_method_configuration_update_params.rb +43 -1
  27. data/lib/stripe/params/payment_method_create_params.rb +11 -1
  28. data/lib/stripe/params/payout_create_params.rb +1 -1
  29. data/lib/stripe/params/setup_intent_confirm_params.rb +18 -2
  30. data/lib/stripe/params/setup_intent_create_params.rb +18 -2
  31. data/lib/stripe/params/setup_intent_update_params.rb +18 -2
  32. data/lib/stripe/params/subscription_create_params.rb +61 -11
  33. data/lib/stripe/params/subscription_item_create_params.rb +1 -7
  34. data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
  35. data/lib/stripe/params/subscription_item_update_params.rb +1 -7
  36. data/lib/stripe/params/subscription_schedule_create_params.rb +4 -0
  37. data/lib/stripe/params/subscription_schedule_update_params.rb +4 -0
  38. data/lib/stripe/params/subscription_update_params.rb +62 -8
  39. data/lib/stripe/params/terminal/configuration_create_params.rb +52 -0
  40. data/lib/stripe/params/terminal/configuration_update_params.rb +52 -0
  41. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -1
  42. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
  43. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
  44. data/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
  45. data/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
  46. data/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb +12 -0
  47. data/lib/stripe/params/v2/core/account_create_params.rb +28 -6
  48. data/lib/stripe/params/v2/core/account_token_create_params.rb +27 -5
  49. data/lib/stripe/params/v2/core/account_update_params.rb +29 -7
  50. data/lib/stripe/params/v2/core/event_destination_create_params.rb +23 -0
  51. data/lib/stripe/params.rb +1342 -614
  52. data/lib/stripe/railtie.rb +8 -0
  53. data/lib/stripe/resources/account.rb +4 -0
  54. data/lib/stripe/resources/balance_settings.rb +42 -2
  55. data/lib/stripe/resources/charge.rb +35 -0
  56. data/lib/stripe/resources/checkout/session.rb +23 -7
  57. data/lib/stripe/resources/confirmation_token.rb +26 -0
  58. data/lib/stripe/resources/discount.rb +2 -2
  59. data/lib/stripe/resources/invoice.rb +2 -0
  60. data/lib/stripe/resources/invoice_item.rb +34 -1
  61. data/lib/stripe/resources/issuing/dispute.rb +1 -1
  62. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  63. data/lib/stripe/resources/mandate.rb +13 -0
  64. data/lib/stripe/resources/payment_attempt_record.rb +40 -10
  65. data/lib/stripe/resources/payment_intent.rb +71 -5
  66. data/lib/stripe/resources/payment_link.rb +40 -0
  67. data/lib/stripe/resources/payment_method.rb +26 -0
  68. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  69. data/lib/stripe/resources/payment_record.rb +40 -10
  70. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  71. data/lib/stripe/resources/refund.rb +13 -0
  72. data/lib/stripe/resources/setup_attempt.rb +13 -0
  73. data/lib/stripe/resources/setup_intent.rb +26 -0
  74. data/lib/stripe/resources/subscription.rb +77 -4
  75. data/lib/stripe/resources/subscription_item.rb +2 -0
  76. data/lib/stripe/resources/subscription_schedule.rb +2 -0
  77. data/lib/stripe/resources/terminal/configuration.rb +64 -0
  78. data/lib/stripe/resources/terminal/reader.rb +116 -0
  79. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +3 -3
  80. data/lib/stripe/resources/v2/billing/meter_event_session.rb +3 -3
  81. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +274 -0
  82. data/lib/stripe/resources/v2/core/account.rb +37 -10
  83. data/lib/stripe/resources/v2/core/account_token.rb +1 -1
  84. data/lib/stripe/resources/v2/core/event.rb +1 -0
  85. data/lib/stripe/resources/v2/core/event_destination.rb +24 -0
  86. data/lib/stripe/resources.rb +500 -178
  87. data/lib/stripe/services/payment_intent_service.rb +3 -1
  88. data/lib/stripe/services/subscription_service.rb +2 -2
  89. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -1
  90. data/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
  91. data/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
  92. data/lib/stripe/services/v2/commerce_service.rb +15 -0
  93. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  94. data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
  95. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
  96. data/lib/stripe/services/v2/core/event_service.rb +2 -1
  97. data/lib/stripe/services/v2_services.rb +2 -1
  98. data/lib/stripe/services.rb +469 -189
  99. data/lib/stripe/version.rb +1 -1
  100. data/lib/stripe.rb +25 -4
  101. data/rbi/stripe.rbi +2785 -253
  102. metadata +14 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78ccbec917bf0c6a26ac806a3112b2b3b7bf809befc82b50fae4c6092c9a3b7f
4
- data.tar.gz: 5666ebc1fd311cac8c23a9871f18a2131ecb494c34d2a85879622a7978b48c80
3
+ metadata.gz: 715f37a83475a0b5c1ebdce70d8826796d474310c11b4626bb402f1ab602e857
4
+ data.tar.gz: fa47f4164988be2d52b117f64ac070411a341340daaf1adf1fae0a297faaa668
5
5
  SHA512:
6
- metadata.gz: 96b82b47b80a3e905866d29d9d907266f1ecfe516c3e5065e75e85d12a5f7126c937cf7c13470078db99f052157df33684ec9b077300c354f21ef94667a6d1b2
7
- data.tar.gz: 86cd975e95ddb9829432f8c8c4af599875687a2ab241320e1cf815989f41a0967eb23b0ed65ecd171681ff11ad97b042e9d06accd3e5e449e83ba99be5d3e486
6
+ metadata.gz: 811401e5417169c9e5093d1fb918f402f2776364d8046f8ba2d1f63d64a279823dfc1623c23dd92033447986b5685daa427a3d730a3b0e76deb6a9a5e569049b
7
+ data.tar.gz: b7731b630952fc239345169da53cb656c3dc5d170c64ae8d7cb69652bbcdcf0f1117117b656e009e66bbabcfa3d1e273d93c7a59c084ef41f3adeef070ae73fe
@@ -201,6 +201,9 @@ module Stripe
201
201
  )
202
202
  req_opts = RequestOptions.extract_opts_from_hash(req_opts)
203
203
 
204
+ notice = http_resp["stripe-notice"]
205
+ warn("WARNING: #{notice}") if notice
206
+
204
207
  resp = interpret_response(http_resp)
205
208
 
206
209
  # If being called from `APIRequestor#request`, put the last response in
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-04-22.dahlia"
6
+ CURRENT = "2026-05-27.dahlia"
7
7
  CURRENT_MAJOR = "dahlia"
8
8
  end
9
9
  end
@@ -8,6 +8,14 @@ module Stripe
8
8
  Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type =>
9
9
  Events::V1BillingMeterErrorReportTriggeredEvent,
10
10
  Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent,
11
+ Events::V2CommerceProductCatalogImportsFailedEvent.lookup_type =>
12
+ Events::V2CommerceProductCatalogImportsFailedEvent,
13
+ Events::V2CommerceProductCatalogImportsProcessingEvent.lookup_type =>
14
+ Events::V2CommerceProductCatalogImportsProcessingEvent,
15
+ Events::V2CommerceProductCatalogImportsSucceededEvent.lookup_type =>
16
+ Events::V2CommerceProductCatalogImportsSucceededEvent,
17
+ Events::V2CommerceProductCatalogImportsSucceededWithErrorsEvent.lookup_type =>
18
+ Events::V2CommerceProductCatalogImportsSucceededWithErrorsEvent,
11
19
  Events::V2CoreAccountClosedEvent.lookup_type => Events::V2CoreAccountClosedEvent,
12
20
  Events::V2CoreAccountCreatedEvent.lookup_type => Events::V2CoreAccountCreatedEvent,
13
21
  Events::V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.lookup_type =>
@@ -47,6 +55,14 @@ module Stripe
47
55
  Events::V1BillingMeterErrorReportTriggeredEventNotification,
48
56
  Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type =>
49
57
  Events::V1BillingMeterNoMeterFoundEventNotification,
58
+ Events::V2CommerceProductCatalogImportsFailedEventNotification.lookup_type =>
59
+ Events::V2CommerceProductCatalogImportsFailedEventNotification,
60
+ Events::V2CommerceProductCatalogImportsProcessingEventNotification.lookup_type =>
61
+ Events::V2CommerceProductCatalogImportsProcessingEventNotification,
62
+ Events::V2CommerceProductCatalogImportsSucceededEventNotification.lookup_type =>
63
+ Events::V2CommerceProductCatalogImportsSucceededEventNotification,
64
+ Events::V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.lookup_type =>
65
+ Events::V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification,
50
66
  Events::V2CoreAccountClosedEventNotification.lookup_type =>
51
67
  Events::V2CoreAccountClosedEventNotification,
52
68
  Events::V2CoreAccountCreatedEventNotification.lookup_type =>
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a product catalog import cannot be processed or if processing fails unexpectedly.
7
+ class V2CommerceProductCatalogImportsFailedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.commerce.product_catalog.imports.failed"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when a product catalog import cannot be processed or if processing fails unexpectedly.
25
+ class V2CommerceProductCatalogImportsFailedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.commerce.product_catalog.imports.failed"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a product catalog import file has been uploaded and has started processing.
7
+ class V2CommerceProductCatalogImportsProcessingEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.commerce.product_catalog.imports.processing"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when a product catalog import file has been uploaded and has started processing.
25
+ class V2CommerceProductCatalogImportsProcessingEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.commerce.product_catalog.imports.processing"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a product catalog file has been uploaded successfully and passed validation.
7
+ class V2CommerceProductCatalogImportsSucceededEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.commerce.product_catalog.imports.succeeded"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when a product catalog file has been uploaded successfully and passed validation.
25
+ class V2CommerceProductCatalogImportsSucceededEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.commerce.product_catalog.imports.succeeded"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a product catalog file has been successfully processed but some rows failed validation.
7
+ class V2CommerceProductCatalogImportsSucceededWithErrorsEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.commerce.product_catalog.imports.succeeded_with_errors"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when a product catalog file has been successfully processed but some rows failed validation.
25
+ class V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.commerce.product_catalog.imports.succeeded_with_errors"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -171,6 +171,7 @@ module Stripe
171
171
  V2::Billing::MeterEvent.object_name => V2::Billing::MeterEvent,
172
172
  V2::Billing::MeterEventAdjustment.object_name => V2::Billing::MeterEventAdjustment,
173
173
  V2::Billing::MeterEventSession.object_name => V2::Billing::MeterEventSession,
174
+ V2::Commerce::ProductCatalogImport.object_name => V2::Commerce::ProductCatalogImport,
174
175
  V2::Core::Account.object_name => V2::Core::Account,
175
176
  V2::Core::AccountLink.object_name => V2::Core::AccountLink,
176
177
  V2::Core::AccountPerson.object_name => V2::Core::AccountPerson,
@@ -250,6 +250,15 @@ module Stripe
250
250
  end
251
251
  end
252
252
 
253
+ class BizumPayments < ::Stripe::RequestParams
254
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
255
+ attr_accessor :requested
256
+
257
+ def initialize(requested: nil)
258
+ @requested = requested
259
+ end
260
+ end
261
+
253
262
  class BlikPayments < ::Stripe::RequestParams
254
263
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
255
264
  attr_accessor :requested
@@ -601,6 +610,15 @@ module Stripe
601
610
  end
602
611
  end
603
612
 
613
+ class ScalapayPayments < ::Stripe::RequestParams
614
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
615
+ attr_accessor :requested
616
+
617
+ def initialize(requested: nil)
618
+ @requested = requested
619
+ end
620
+ end
621
+
604
622
  class SepaBankTransferPayments < ::Stripe::RequestParams
605
623
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
606
624
  attr_accessor :requested
@@ -748,6 +766,8 @@ module Stripe
748
766
  attr_accessor :bank_transfer_payments
749
767
  # The billie_payments capability.
750
768
  attr_accessor :billie_payments
769
+ # The bizum_payments capability.
770
+ attr_accessor :bizum_payments
751
771
  # The blik_payments capability.
752
772
  attr_accessor :blik_payments
753
773
  # The boleto_payments capability.
@@ -826,6 +846,8 @@ module Stripe
826
846
  attr_accessor :samsung_pay_payments
827
847
  # The satispay_payments capability.
828
848
  attr_accessor :satispay_payments
849
+ # The scalapay_payments capability.
850
+ attr_accessor :scalapay_payments
829
851
  # The sepa_bank_transfer_payments capability.
830
852
  attr_accessor :sepa_bank_transfer_payments
831
853
  # The sepa_debit_payments capability.
@@ -867,6 +889,7 @@ module Stripe
867
889
  bancontact_payments: nil,
868
890
  bank_transfer_payments: nil,
869
891
  billie_payments: nil,
892
+ bizum_payments: nil,
870
893
  blik_payments: nil,
871
894
  boleto_payments: nil,
872
895
  card_issuing: nil,
@@ -906,6 +929,7 @@ module Stripe
906
929
  revolut_pay_payments: nil,
907
930
  samsung_pay_payments: nil,
908
931
  satispay_payments: nil,
932
+ scalapay_payments: nil,
909
933
  sepa_bank_transfer_payments: nil,
910
934
  sepa_debit_payments: nil,
911
935
  sofort_payments: nil,
@@ -932,6 +956,7 @@ module Stripe
932
956
  @bancontact_payments = bancontact_payments
933
957
  @bank_transfer_payments = bank_transfer_payments
934
958
  @billie_payments = billie_payments
959
+ @bizum_payments = bizum_payments
935
960
  @blik_payments = blik_payments
936
961
  @boleto_payments = boleto_payments
937
962
  @card_issuing = card_issuing
@@ -971,6 +996,7 @@ module Stripe
971
996
  @revolut_pay_payments = revolut_pay_payments
972
997
  @samsung_pay_payments = samsung_pay_payments
973
998
  @satispay_payments = satispay_payments
999
+ @scalapay_payments = scalapay_payments
974
1000
  @sepa_bank_transfer_payments = sepa_bank_transfer_payments
975
1001
  @sepa_debit_payments = sepa_debit_payments
976
1002
  @sofort_payments = sofort_payments
@@ -250,6 +250,15 @@ module Stripe
250
250
  end
251
251
  end
252
252
 
253
+ class BizumPayments < ::Stripe::RequestParams
254
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
255
+ attr_accessor :requested
256
+
257
+ def initialize(requested: nil)
258
+ @requested = requested
259
+ end
260
+ end
261
+
253
262
  class BlikPayments < ::Stripe::RequestParams
254
263
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
255
264
  attr_accessor :requested
@@ -601,6 +610,15 @@ module Stripe
601
610
  end
602
611
  end
603
612
 
613
+ class ScalapayPayments < ::Stripe::RequestParams
614
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
615
+ attr_accessor :requested
616
+
617
+ def initialize(requested: nil)
618
+ @requested = requested
619
+ end
620
+ end
621
+
604
622
  class SepaBankTransferPayments < ::Stripe::RequestParams
605
623
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
606
624
  attr_accessor :requested
@@ -748,6 +766,8 @@ module Stripe
748
766
  attr_accessor :bank_transfer_payments
749
767
  # The billie_payments capability.
750
768
  attr_accessor :billie_payments
769
+ # The bizum_payments capability.
770
+ attr_accessor :bizum_payments
751
771
  # The blik_payments capability.
752
772
  attr_accessor :blik_payments
753
773
  # The boleto_payments capability.
@@ -826,6 +846,8 @@ module Stripe
826
846
  attr_accessor :samsung_pay_payments
827
847
  # The satispay_payments capability.
828
848
  attr_accessor :satispay_payments
849
+ # The scalapay_payments capability.
850
+ attr_accessor :scalapay_payments
829
851
  # The sepa_bank_transfer_payments capability.
830
852
  attr_accessor :sepa_bank_transfer_payments
831
853
  # The sepa_debit_payments capability.
@@ -867,6 +889,7 @@ module Stripe
867
889
  bancontact_payments: nil,
868
890
  bank_transfer_payments: nil,
869
891
  billie_payments: nil,
892
+ bizum_payments: nil,
870
893
  blik_payments: nil,
871
894
  boleto_payments: nil,
872
895
  card_issuing: nil,
@@ -906,6 +929,7 @@ module Stripe
906
929
  revolut_pay_payments: nil,
907
930
  samsung_pay_payments: nil,
908
931
  satispay_payments: nil,
932
+ scalapay_payments: nil,
909
933
  sepa_bank_transfer_payments: nil,
910
934
  sepa_debit_payments: nil,
911
935
  sofort_payments: nil,
@@ -932,6 +956,7 @@ module Stripe
932
956
  @bancontact_payments = bancontact_payments
933
957
  @bank_transfer_payments = bank_transfer_payments
934
958
  @billie_payments = billie_payments
959
+ @bizum_payments = bizum_payments
935
960
  @blik_payments = blik_payments
936
961
  @boleto_payments = boleto_payments
937
962
  @card_issuing = card_issuing
@@ -971,6 +996,7 @@ module Stripe
971
996
  @revolut_pay_payments = revolut_pay_payments
972
997
  @samsung_pay_payments = samsung_pay_payments
973
998
  @satispay_payments = satispay_payments
999
+ @scalapay_payments = scalapay_payments
974
1000
  @sepa_bank_transfer_payments = sepa_bank_transfer_payments
975
1001
  @sepa_debit_payments = sepa_debit_payments
976
1002
  @sofort_payments = sofort_payments
@@ -5,6 +5,21 @@ module Stripe
5
5
  class BalanceSettingsUpdateParams < ::Stripe::RequestParams
6
6
  class Payments < ::Stripe::RequestParams
7
7
  class Payouts < ::Stripe::RequestParams
8
+ class AutomaticTransferRulesByCurrency < ::Stripe::RequestParams
9
+ # The ID of the FinancialAccount that funds will be transferred to during automatic transfers.
10
+ attr_accessor :payout_method
11
+ # The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`.
12
+ attr_accessor :transfer_up_to_amount
13
+ # The type of automatic transfer rule.
14
+ attr_accessor :type
15
+
16
+ def initialize(payout_method: nil, transfer_up_to_amount: nil, type: nil)
17
+ @payout_method = payout_method
18
+ @transfer_up_to_amount = transfer_up_to_amount
19
+ @type = type
20
+ end
21
+ end
22
+
8
23
  class Schedule < ::Stripe::RequestParams
9
24
  # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
10
25
  attr_accessor :interval
@@ -19,6 +34,8 @@ module Stripe
19
34
  @weekly_payout_days = weekly_payout_days
20
35
  end
21
36
  end
37
+ # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount.
38
+ attr_accessor :automatic_transfer_rules_by_currency
22
39
  # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts).
23
40
  attr_accessor :minimum_balance_by_currency
24
41
  # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
@@ -26,7 +43,13 @@ module Stripe
26
43
  # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
27
44
  attr_accessor :statement_descriptor
28
45
 
29
- def initialize(minimum_balance_by_currency: nil, schedule: nil, statement_descriptor: nil)
46
+ def initialize(
47
+ automatic_transfer_rules_by_currency: nil,
48
+ minimum_balance_by_currency: nil,
49
+ schedule: nil,
50
+ statement_descriptor: nil
51
+ )
52
+ @automatic_transfer_rules_by_currency = automatic_transfer_rules_by_currency
30
53
  @minimum_balance_by_currency = minimum_balance_by_currency
31
54
  @schedule = schedule
32
55
  @statement_descriptor = statement_descriptor
@@ -34,11 +57,28 @@ module Stripe
34
57
  end
35
58
 
36
59
  class SettlementTiming < ::Stripe::RequestParams
60
+ class StartOfDay < ::Stripe::RequestParams
61
+ # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs).
62
+ attr_accessor :hour
63
+ # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30.
64
+ attr_accessor :minutes
65
+ # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs).
66
+ attr_accessor :timezone
67
+
68
+ def initialize(hour: nil, minutes: nil, timezone: nil)
69
+ @hour = hour
70
+ @minutes = minutes
71
+ @timezone = timezone
72
+ end
73
+ end
37
74
  # Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule).
38
75
  attr_accessor :delay_days_override
76
+ # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation.
77
+ attr_accessor :start_of_day
39
78
 
40
- def initialize(delay_days_override: nil)
79
+ def initialize(delay_days_override: nil, start_of_day: nil)
41
80
  @delay_days_override = delay_days_override
81
+ @start_of_day = start_of_day
42
82
  end
43
83
  end
44
84
  # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
@@ -78,11 +78,14 @@ module Stripe
78
78
  class TransferData < ::Stripe::RequestParams
79
79
  # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
80
80
  attr_accessor :amount
81
+ # An arbitrary string attached to the transfer. Often useful for displaying to users.
82
+ attr_accessor :description
81
83
  # ID of an existing, connected Stripe account.
82
84
  attr_accessor :destination
83
85
 
84
- def initialize(amount: nil, destination: nil)
86
+ def initialize(amount: nil, description: nil, destination: nil)
85
87
  @amount = amount
88
+ @description = description
86
89
  @destination = destination
87
90
  end
88
91
  end