stripe 19.7.0.pre.alpha.1 → 19.7.0.pre.alpha.2

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 (112) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +2 -2
  3. data/lib/stripe/event_types.rb +32 -0
  4. data/lib/stripe/events/v2_core_health_metronome_notification_latency_firing_event.rb +58 -0
  5. data/lib/stripe/events/v2_core_health_metronome_notification_latency_resolved_event.rb +60 -0
  6. data/lib/stripe/events/v2_money_management_payout_intent_canceled_event.rb +44 -0
  7. data/lib/stripe/events/v2_money_management_payout_intent_created_event.rb +44 -0
  8. data/lib/stripe/events/v2_money_management_payout_intent_posted_event.rb +44 -0
  9. data/lib/stripe/events/v2_money_management_payout_intent_processing_event.rb +44 -0
  10. data/lib/stripe/events/v2_money_management_payout_intent_requires_action_event.rb +44 -0
  11. data/lib/stripe/events/v2_signals_payment_retry_evaluations_retry_recommended_event.rb +46 -0
  12. data/lib/stripe/object_types.rb +4 -0
  13. data/lib/stripe/params/account_session_create_params.rb +8 -1
  14. data/lib/stripe/params/billing/feedback_option_create_params.rb +18 -0
  15. data/lib/stripe/params/billing/feedback_option_deactivate_params.rb +15 -0
  16. data/lib/stripe/params/billing/feedback_option_list_params.rb +27 -0
  17. data/lib/stripe/params/billing/feedback_option_retrieve_params.rb +15 -0
  18. data/lib/stripe/params/billing/feedback_option_update_params.rb +18 -0
  19. data/lib/stripe/params/billing_portal/configuration_create_params.rb +4 -1
  20. data/lib/stripe/params/billing_portal/configuration_update_params.rb +4 -1
  21. data/lib/stripe/params/checkout/session_create_params.rb +4 -1
  22. data/lib/stripe/params/checkout/session_update_params.rb +53 -0
  23. data/lib/stripe/params/customer_session_create_params.rb +26 -0
  24. data/lib/stripe/params/payment_intent_confirm_params.rb +9 -5
  25. data/lib/stripe/params/payment_intent_create_params.rb +9 -5
  26. data/lib/stripe/params/payment_intent_update_params.rb +9 -5
  27. data/lib/stripe/params/payment_link_update_params.rb +32 -1
  28. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +19 -0
  29. data/lib/stripe/params/payment_record_report_payment_params.rb +19 -0
  30. data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
  31. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +1 -1
  32. data/lib/stripe/params/setup_intent_confirm_params.rb +4 -1
  33. data/lib/stripe/params/setup_intent_create_params.rb +4 -5
  34. data/lib/stripe/params/setup_intent_update_params.rb +4 -5
  35. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +21 -1
  36. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +21 -1
  37. data/lib/stripe/params/subscription_cancel_params.rb +4 -1
  38. data/lib/stripe/params/subscription_update_params.rb +8 -1
  39. data/lib/stripe/params/tax/registration_create_params.rb +351 -27
  40. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +21 -1
  41. data/lib/stripe/params/v2/billing/contract_create_params.rb +34 -0
  42. data/lib/stripe/params/v2/billing/contract_update_params.rb +91 -0
  43. data/lib/stripe/params/v2/core/account_create_params.rb +2 -5
  44. data/lib/stripe/params/v2/core/account_update_params.rb +6 -5
  45. data/lib/stripe/params/v2/core/approval_request_list_params.rb +31 -1
  46. data/lib/stripe/params/v2/core/{approval_request_submit_params.rb → approval_request_update_params.rb} +2 -2
  47. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +13 -1
  48. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -1
  49. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -1
  50. data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
  51. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +32 -0
  52. data/lib/stripe/params/v2/signals/payment_retry_evaluation_cancel_params.rb +17 -0
  53. data/lib/stripe/params/v2/signals/payment_retry_evaluation_create_params.rb +20 -0
  54. data/lib/stripe/params/v2/signals/payment_retry_evaluation_retrieve_params.rb +10 -0
  55. data/lib/stripe/params/v2/signals/payment_retry_evaluation_update_params.rb +20 -0
  56. data/lib/stripe/params/v2/{core/approval_request_execute_params.rb → signals/payment_retry_signal_retrieve_params.rb} +2 -2
  57. data/lib/stripe/params/v2/tax/integration_configuration_retrieve_params.rb +10 -0
  58. data/lib/stripe/params/v2/tax/integration_configuration_update_params.rb +25 -0
  59. data/lib/stripe/params.rb +31 -4
  60. data/lib/stripe/resources/account.rb +2 -0
  61. data/lib/stripe/resources/account_session.rb +27 -0
  62. data/lib/stripe/resources/billing/feedback_option.rb +59 -1
  63. data/lib/stripe/resources/charge.rb +16 -0
  64. data/lib/stripe/resources/checkout/session.rb +16 -0
  65. data/lib/stripe/resources/confirmation_token.rb +15 -0
  66. data/lib/stripe/resources/customer_tax_exemption.rb +6 -6
  67. data/lib/stripe/resources/identity/verification_report.rb +24 -0
  68. data/lib/stripe/resources/payment_attempt_record.rb +16 -0
  69. data/lib/stripe/resources/payment_intent.rb +26 -0
  70. data/lib/stripe/resources/payment_record.rb +16 -0
  71. data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
  72. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  73. data/lib/stripe/resources/setup_intent.rb +2 -0
  74. data/lib/stripe/resources/shared_payment/granted_token.rb +17 -1
  75. data/lib/stripe/resources/shared_payment/issued_token.rb +17 -1
  76. data/lib/stripe/resources/terminal/reader.rb +1 -1
  77. data/lib/stripe/resources/v2/billing/contract.rb +48 -0
  78. data/lib/stripe/resources/v2/core/account.rb +2 -2
  79. data/lib/stripe/resources/v2/core/approval_request.rb +72 -14
  80. data/lib/stripe/resources/v2/core/event_notification.rb +6 -3
  81. data/lib/stripe/resources/v2/core/fee_batch.rb +2 -0
  82. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +2 -0
  83. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +2 -0
  84. data/lib/stripe/resources/v2/money_management/financial_account.rb +75 -0
  85. data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
  86. data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
  87. data/lib/stripe/resources/v2/signals/account_activity.rb +36 -0
  88. data/lib/stripe/resources/v2/signals/account_signal.rb +50 -26
  89. data/lib/stripe/resources/v2/signals/payment_retry_evaluation.rb +47 -0
  90. data/lib/stripe/resources/v2/signals/payment_retry_signal.rb +56 -0
  91. data/lib/stripe/resources/v2/tax/integration_configuration.rb +44 -0
  92. data/lib/stripe/resources.rb +46 -0
  93. data/lib/stripe/services/billing/feedback_option_service.rb +63 -0
  94. data/lib/stripe/services/billing_service.rb +2 -1
  95. data/lib/stripe/services/oauth_service.rb +1 -1
  96. data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
  97. data/lib/stripe/services/radar_service.rb +2 -1
  98. data/lib/stripe/services/v2/billing/contract_service.rb +5 -0
  99. data/lib/stripe/services/v2/core/approval_request_service.rb +4 -16
  100. data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
  101. data/lib/stripe/services/v2/signals/payment_retry_evaluation_service.rb +62 -0
  102. data/lib/stripe/services/v2/signals/payment_retry_signal_service.rb +21 -0
  103. data/lib/stripe/services/v2/signals_service.rb +4 -1
  104. data/lib/stripe/services/v2/tax/integration_configuration_service.rb +32 -0
  105. data/lib/stripe/services/v2/tax_service.rb +3 -1
  106. data/lib/stripe/services.rb +10 -0
  107. data/lib/stripe/stripe_event_notification_handler.rb +32 -0
  108. data/lib/stripe/util.rb +32 -0
  109. data/lib/stripe/v2_list_object.rb +2 -1
  110. data/lib/stripe/version.rb +1 -1
  111. data/rbi/stripe.rbi +3252 -521
  112. metadata +34 -4
@@ -6,19 +6,39 @@ module Stripe
6
6
  module SharedPayment
7
7
  class GrantedTokenCreateParams < ::Stripe::RequestParams
8
8
  class UsageLimits < ::Stripe::RequestParams
9
+ class Recurring < ::Stripe::RequestParams
10
+ # The interval at which the shared payment token's amount usage restrictions reset.
11
+ attr_accessor :interval
12
+ # The number of intervals between each reset. Defaults to 1.
13
+ attr_accessor :interval_count
14
+
15
+ def initialize(interval: nil, interval_count: nil)
16
+ @interval = interval
17
+ @interval_count = interval_count
18
+ end
19
+ end
9
20
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
10
21
  attr_accessor :currency
11
22
  # Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
12
23
  attr_accessor :expires_at
13
24
  # Max amount that can be captured using this SharedPaymentToken
14
25
  attr_accessor :max_amount
26
+ # The recurring schedule for the shared payment token's amount usage restrictions.
27
+ attr_accessor :recurring
15
28
  # The recurring interval at which the shared payment token's amount usage restrictions reset.
16
29
  attr_accessor :recurring_interval
17
30
 
18
- def initialize(currency: nil, expires_at: nil, max_amount: nil, recurring_interval: nil)
31
+ def initialize(
32
+ currency: nil,
33
+ expires_at: nil,
34
+ max_amount: nil,
35
+ recurring: nil,
36
+ recurring_interval: nil
37
+ )
19
38
  @currency = currency
20
39
  @expires_at = expires_at
21
40
  @max_amount = max_amount
41
+ @recurring = recurring
22
42
  @recurring_interval = recurring_interval
23
43
  end
24
44
  end
@@ -136,6 +136,35 @@ module Stripe
136
136
  end
137
137
  end
138
138
 
139
+ class OneTimeFee < ::Stripe::RequestParams
140
+ class BillAt < ::Stripe::RequestParams
141
+ # The timestamp at which the entry should be billed. Required if `type` is `timestamp`.
142
+ attr_accessor :timestamp
143
+ # The type of the bill_at.
144
+ attr_accessor :type
145
+
146
+ def initialize(timestamp: nil, type: nil)
147
+ @timestamp = timestamp
148
+ @type = type
149
+ end
150
+ end
151
+ # The amount to bill.
152
+ attr_accessor :amount
153
+ # When this fee should be billed.
154
+ attr_accessor :bill_at
155
+ # A user-provided lookup key.
156
+ attr_accessor :lookup_key
157
+ # The id of the product for this fee.
158
+ attr_accessor :product
159
+
160
+ def initialize(amount: nil, bill_at: nil, lookup_key: nil, product: nil)
161
+ @amount = amount
162
+ @bill_at = bill_at
163
+ @lookup_key = lookup_key
164
+ @product = product
165
+ end
166
+ end
167
+
139
168
  class PricingLine < ::Stripe::RequestParams
140
169
  class EndsAt < ::Stripe::RequestParams
141
170
  # The timestamp when the item ends. Required if `type` is `timestamp`.
@@ -431,6 +460,7 @@ module Stripe
431
460
  # The billing settings for the contract.
432
461
  attr_accessor :billing_settings
433
462
  # A unique user-provided contract number e.g. C-2026-0001.
463
+ # Maximum length of 200 characters.
434
464
  attr_accessor :contract_number
435
465
  # Currency of the contract.
436
466
  attr_accessor :currency
@@ -438,6 +468,8 @@ module Stripe
438
468
  attr_accessor :include
439
469
  # Set of key-value pairs that you can attach to an object.
440
470
  attr_accessor :metadata
471
+ # A list of one-time fees to create with the contract. Each fee is billed as individual invoice items per its bill_schedule.
472
+ attr_accessor :one_time_fees
441
473
  # A list of pricing lines to create with the contract.
442
474
  attr_accessor :pricing_lines
443
475
  # A list of pricing overrides to create with the contract.
@@ -450,6 +482,7 @@ module Stripe
450
482
  currency: nil,
451
483
  include: nil,
452
484
  metadata: nil,
485
+ one_time_fees: nil,
453
486
  pricing_lines: nil,
454
487
  pricing_overrides: nil
455
488
  )
@@ -459,6 +492,7 @@ module Stripe
459
492
  @currency = currency
460
493
  @include = include
461
494
  @metadata = metadata
495
+ @one_time_fees = one_time_fees
462
496
  @pricing_lines = pricing_lines
463
497
  @pricing_overrides = pricing_overrides
464
498
  end
@@ -5,6 +5,93 @@ module Stripe
5
5
  module V2
6
6
  module Billing
7
7
  class ContractUpdateParams < ::Stripe::RequestParams
8
+ class OneTimeFeeAction < ::Stripe::RequestParams
9
+ class Add < ::Stripe::RequestParams
10
+ class BillAt < ::Stripe::RequestParams
11
+ # The timestamp at which the entry should be billed. Required if `type` is `timestamp`.
12
+ attr_accessor :timestamp
13
+ # The type of the bill_at.
14
+ attr_accessor :type
15
+
16
+ def initialize(timestamp: nil, type: nil)
17
+ @timestamp = timestamp
18
+ @type = type
19
+ end
20
+ end
21
+ # The amount to bill.
22
+ attr_accessor :amount
23
+ # When this fee should be billed.
24
+ attr_accessor :bill_at
25
+ # A user-provided lookup key.
26
+ attr_accessor :lookup_key
27
+ # The id of the product for this fee.
28
+ attr_accessor :product
29
+
30
+ def initialize(amount: nil, bill_at: nil, lookup_key: nil, product: nil)
31
+ @amount = amount
32
+ @bill_at = bill_at
33
+ @lookup_key = lookup_key
34
+ @product = product
35
+ end
36
+ end
37
+
38
+ class Remove < ::Stripe::RequestParams
39
+ # The id of the one-time fee to remove.
40
+ attr_accessor :id
41
+ # The lookup key of the one-time fee to remove.
42
+ attr_accessor :lookup_key
43
+
44
+ def initialize(id: nil, lookup_key: nil)
45
+ @id = id
46
+ @lookup_key = lookup_key
47
+ end
48
+ end
49
+
50
+ class Update < ::Stripe::RequestParams
51
+ class BillAt < ::Stripe::RequestParams
52
+ # The timestamp at which the entry should be billed. Required if `type` is `timestamp`.
53
+ attr_accessor :timestamp
54
+ # The type of the bill_at.
55
+ attr_accessor :type
56
+
57
+ def initialize(timestamp: nil, type: nil)
58
+ @timestamp = timestamp
59
+ @type = type
60
+ end
61
+ end
62
+ # The updated amount to bill.
63
+ attr_accessor :amount
64
+ # The updated bill_at schedule.
65
+ attr_accessor :bill_at
66
+ # The id of the one-time fee to update.
67
+ attr_accessor :id
68
+ # The lookup key of the one-time fee to update.
69
+ attr_accessor :lookup_key
70
+
71
+ def initialize(amount: nil, bill_at: nil, id: nil, lookup_key: nil)
72
+ @amount = amount
73
+ @bill_at = bill_at
74
+ @id = id
75
+ @lookup_key = lookup_key
76
+ end
77
+ end
78
+ # Parameters for adding a one-time fee.
79
+ attr_accessor :add
80
+ # Parameters for removing a one-time fee.
81
+ attr_accessor :remove
82
+ # The type of one-time fee action.
83
+ attr_accessor :type
84
+ # Parameters for updating a one-time fee.
85
+ attr_accessor :update
86
+
87
+ def initialize(add: nil, remove: nil, type: nil, update: nil)
88
+ @add = add
89
+ @remove = remove
90
+ @type = type
91
+ @update = update
92
+ end
93
+ end
94
+
8
95
  class PricingLineAction < ::Stripe::RequestParams
9
96
  class Add < ::Stripe::RequestParams
10
97
  class EndsAt < ::Stripe::RequestParams
@@ -731,6 +818,8 @@ module Stripe
731
818
  attr_accessor :include
732
819
  # Set of key-value pairs.
733
820
  attr_accessor :metadata
821
+ # One-time fee actions to apply.
822
+ attr_accessor :one_time_fee_actions
734
823
  # Pricing line actions to apply.
735
824
  attr_accessor :pricing_line_actions
736
825
  # Pricing override actions to apply.
@@ -739,11 +828,13 @@ module Stripe
739
828
  def initialize(
740
829
  include: nil,
741
830
  metadata: nil,
831
+ one_time_fee_actions: nil,
742
832
  pricing_line_actions: nil,
743
833
  pricing_override_actions: nil
744
834
  )
745
835
  @include = include
746
836
  @metadata = metadata
837
+ @one_time_fee_actions = one_time_fee_actions
747
838
  @pricing_line_actions = pricing_line_actions
748
839
  @pricing_override_actions = pricing_override_actions
749
840
  end
@@ -2248,12 +2248,9 @@ module Stripe
2248
2248
  class GrossSettlement < ::Stripe::RequestParams
2249
2249
  # The ID of the payment method to use for gross settlement payouts.
2250
2250
  attr_accessor :payment_method
2251
- # Whether to collect a payment method for gross settlement.
2252
- attr_accessor :payment_method_collection
2253
2251
 
2254
- def initialize(payment_method: nil, payment_method_collection: nil)
2252
+ def initialize(payment_method: nil)
2255
2253
  @payment_method = payment_method
2256
- @payment_method_collection = payment_method_collection
2257
2254
  end
2258
2255
  end
2259
2256
 
@@ -6213,7 +6210,7 @@ module Stripe
6213
6210
  }
6214
6211
  end
6215
6212
  end
6216
- # The account token generated by the account token api.
6213
+ # The account token generated by the account token API.
6217
6214
  attr_accessor :account_token
6218
6215
  # An Account Configuration which allows the Account to take on a key persona across Stripe products.
6219
6216
  attr_accessor :configuration
@@ -2266,12 +2266,9 @@ module Stripe
2266
2266
  class GrossSettlement < ::Stripe::RequestParams
2267
2267
  # The ID of the payment method to use for gross settlement payouts.
2268
2268
  attr_accessor :payment_method
2269
- # Whether to collect a payment method for gross settlement.
2270
- attr_accessor :payment_method_collection
2271
2269
 
2272
- def initialize(payment_method: nil, payment_method_collection: nil)
2270
+ def initialize(payment_method: nil)
2273
2271
  @payment_method = payment_method
2274
- @payment_method_collection = payment_method_collection
2275
2272
  end
2276
2273
  end
2277
2274
 
@@ -4171,6 +4168,8 @@ module Stripe
4171
4168
  attr_accessor :currency
4172
4169
  # The Account's preferred locales (languages), ordered by preference.
4173
4170
  attr_accessor :locales
4171
+ # Default payout methods per currency. Keys are three-letter [ISO currency codes](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Values are v2 Payout Method IDs.
4172
+ attr_accessor :payout_methods
4174
4173
  # Account profile information.
4175
4174
  attr_accessor :profile
4176
4175
  # Default responsibilities held by either Stripe or the platform.
@@ -4181,12 +4180,14 @@ module Stripe
4181
4180
  def initialize(
4182
4181
  currency: nil,
4183
4182
  locales: nil,
4183
+ payout_methods: nil,
4184
4184
  profile: nil,
4185
4185
  responsibilities: nil,
4186
4186
  timezone: nil
4187
4187
  )
4188
4188
  @currency = currency
4189
4189
  @locales = locales
4190
+ @payout_methods = payout_methods
4190
4191
  @profile = profile
4191
4192
  @responsibilities = responsibilities
4192
4193
  @timezone = timezone
@@ -6245,7 +6246,7 @@ module Stripe
6245
6246
  }
6246
6247
  end
6247
6248
  end
6248
- # The account token generated by the account token api.
6249
+ # The account token generated by the account token API.
6249
6250
  attr_accessor :account_token
6250
6251
  # An Account Configuration which allows the Account to take on a key persona across Stripe products.
6251
6252
  attr_accessor :configuration
@@ -5,11 +5,41 @@ module Stripe
5
5
  module V2
6
6
  module Core
7
7
  class ApprovalRequestListParams < ::Stripe::RequestParams
8
+ class Created < ::Stripe::RequestParams
9
+ # Filter for objects created after the specified timestamp.
10
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
11
+ attr_accessor :gt
12
+ # Filter for objects created on or after the specified timestamp.
13
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
14
+ attr_accessor :gte
15
+ # Filter for objects created before the specified timestamp.
16
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
17
+ attr_accessor :lt
18
+ # Filter for objects created on or before the specified timestamp.
19
+ # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
20
+ attr_accessor :lte
21
+
22
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
23
+ @gt = gt
24
+ @gte = gte
25
+ @lt = lt
26
+ @lte = lte
27
+ end
28
+ end
29
+ # Filter by action type (e.g. "refund.create", "payment_intent.create", "payout.create").
30
+ attr_accessor :action
31
+ # Filter by creation time.
32
+ attr_accessor :created
8
33
  # Maximum number of results to return.
9
34
  attr_accessor :limit
35
+ # Filter by approval request status (e.g. "requires_review", "approved", "succeeded", "failed", "rejected", "canceled", "expired").
36
+ attr_accessor :status
10
37
 
11
- def initialize(limit: nil)
38
+ def initialize(action: nil, created: nil, limit: nil, status: nil)
39
+ @action = action
40
+ @created = created
12
41
  @limit = limit
42
+ @status = status
13
43
  end
14
44
  end
15
45
  end
@@ -4,8 +4,8 @@
4
4
  module Stripe
5
5
  module V2
6
6
  module Core
7
- class ApprovalRequestSubmitParams < ::Stripe::RequestParams
8
- # The reason for submitting the approval request.
7
+ class ApprovalRequestUpdateParams < ::Stripe::RequestParams
8
+ # The updated reason for the approval request.
9
9
  attr_accessor :reason
10
10
 
11
11
  def initialize(reason: nil)
@@ -5,6 +5,15 @@ module Stripe
5
5
  module V2
6
6
  module MoneyManagement
7
7
  class FinancialAccountCreateParams < ::Stripe::RequestParams
8
+ class Savings < ::Stripe::RequestParams
9
+ # The currencies that this savings FinancialAccount can hold. Three-letter ISO currency code, in lowercase.
10
+ attr_accessor :holds_currencies
11
+
12
+ def initialize(holds_currencies: nil)
13
+ @holds_currencies = holds_currencies
14
+ end
15
+ end
16
+
8
17
  class Storage < ::Stripe::RequestParams
9
18
  # The usage type for funds in this FinancialAccount. Can be used to specify that the funds are for Consumer activity.
10
19
  attr_accessor :funds_usage_type
@@ -20,14 +29,17 @@ module Stripe
20
29
  attr_accessor :display_name
21
30
  # Metadata associated with the FinancialAccount.
22
31
  attr_accessor :metadata
32
+ # Parameters specific to creating `savings` type FinancialAccounts.
33
+ attr_accessor :savings
23
34
  # Parameters specific to creating `storage` type FinancialAccounts.
24
35
  attr_accessor :storage
25
36
  # The type of FinancialAccount to create.
26
37
  attr_accessor :type
27
38
 
28
- def initialize(display_name: nil, metadata: nil, storage: nil, type: nil)
39
+ def initialize(display_name: nil, metadata: nil, savings: nil, storage: nil, type: nil)
29
40
  @display_name = display_name
30
41
  @metadata = metadata
42
+ @savings = savings
31
43
  @storage = storage
32
44
  @type = type
33
45
  end
@@ -79,7 +79,7 @@ module Stripe
79
79
  attr_accessor :card
80
80
  # The type specific details of the crypto wallet payout method.
81
81
  attr_accessor :crypto_wallet
82
- # Closed Enum. The type of payout method to be created.
82
+ # Open Enum. The type of payout method to be created.
83
83
  attr_accessor :type
84
84
 
85
85
  def initialize(bank_account: nil, card: nil, crypto_wallet: nil, type: nil)
@@ -62,7 +62,7 @@ module Stripe
62
62
  attr_accessor :bank_account
63
63
  # The type specific details of the card payout method.
64
64
  attr_accessor :card
65
- # Closed Enum. The type of payout method to be created/updated.
65
+ # Open Enum. The type of payout method to be created/updated.
66
66
  attr_accessor :type
67
67
 
68
68
  def initialize(bank_account: nil, card: nil, type: nil)
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ class PayoutMethodDisableParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -70,6 +70,24 @@ module Stripe
70
70
  end
71
71
  end
72
72
 
73
+ class AccountRestricted < ::Stripe::RequestParams
74
+ # The reason the account or customer was restricted.
75
+ attr_accessor :reason
76
+
77
+ def initialize(reason: nil)
78
+ @reason = reason
79
+ end
80
+ end
81
+
82
+ class AccountSuspended < ::Stripe::RequestParams
83
+ # The reason the customer was suspended.
84
+ attr_accessor :reason
85
+
86
+ def initialize(reason: nil)
87
+ @reason = reason
88
+ end
89
+ end
90
+
73
91
  class LoginAttempt < ::Stripe::RequestParams
74
92
  class ClientDetails < ::Stripe::RequestParams
75
93
  class Data < ::Stripe::RequestParams
@@ -159,10 +177,18 @@ module Stripe
159
177
  attr_accessor :account_details
160
178
  # The account evaluation this activity is associated with, when applicable.
161
179
  attr_accessor :account_evaluation
180
+ # Details for the account restriction. Provide only when type is account_restricted. The activity
181
+ # requires an existing account_details.account or account_details.customer; inline data is unsupported.
182
+ attr_accessor :account_restricted
183
+ # Details for the account suspension. Provide only when type is account_suspended. The activity
184
+ # requires an existing account_details.customer; account_details.account and inline data are unsupported.
185
+ attr_accessor :account_suspended
162
186
  # Details for the login attempt. Provide only when type is login_attempt.
163
187
  attr_accessor :login_attempt
164
188
  # Details for the login decision. Provide only when type is login_decision.
165
189
  attr_accessor :login_decision
190
+ # Additional information about the activity.
191
+ attr_accessor :metadata
166
192
  # Timestamp at which the activity occurred. Defaults to the created time if not provided.
167
193
  attr_accessor :occurred_at
168
194
  # Details for the registration attempt. Provide only when type is registration_attempt.
@@ -175,8 +201,11 @@ module Stripe
175
201
  def initialize(
176
202
  account_details: nil,
177
203
  account_evaluation: nil,
204
+ account_restricted: nil,
205
+ account_suspended: nil,
178
206
  login_attempt: nil,
179
207
  login_decision: nil,
208
+ metadata: nil,
180
209
  occurred_at: nil,
181
210
  registration_attempt: nil,
182
211
  registration_decision: nil,
@@ -184,8 +213,11 @@ module Stripe
184
213
  )
185
214
  @account_details = account_details
186
215
  @account_evaluation = account_evaluation
216
+ @account_restricted = account_restricted
217
+ @account_suspended = account_suspended
187
218
  @login_attempt = login_attempt
188
219
  @login_decision = login_decision
220
+ @metadata = metadata
189
221
  @occurred_at = occurred_at
190
222
  @registration_attempt = registration_attempt
191
223
  @registration_decision = registration_decision
@@ -0,0 +1,17 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Signals
7
+ class PaymentRetryEvaluationCancelParams < ::Stripe::RequestParams
8
+ # Optional reason for canceling the evaluation.
9
+ attr_accessor :cancellation_reason
10
+
11
+ def initialize(cancellation_reason: nil)
12
+ @cancellation_reason = cancellation_reason
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Signals
7
+ class PaymentRetryEvaluationCreateParams < ::Stripe::RequestParams
8
+ # ID of the PaymentIntent to evaluate. Mutually exclusive with payment_record.
9
+ attr_accessor :payment_intent
10
+ # ID of the PaymentRecord to evaluate. Mutually exclusive with payment_intent.
11
+ attr_accessor :payment_record
12
+
13
+ def initialize(payment_intent: nil, payment_record: nil)
14
+ @payment_intent = payment_intent
15
+ @payment_record = payment_record
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Signals
7
+ class PaymentRetryEvaluationRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Signals
7
+ class PaymentRetryEvaluationUpdateParams < ::Stripe::RequestParams
8
+ # PaymentIntent to update to. Must match the evaluation's signal type.
9
+ attr_accessor :payment_intent
10
+ # PaymentRecord to update to. Must match the evaluation's signal type.
11
+ attr_accessor :payment_record
12
+
13
+ def initialize(payment_intent: nil, payment_record: nil)
14
+ @payment_intent = payment_intent
15
+ @payment_record = payment_record
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -3,8 +3,8 @@
3
3
 
4
4
  module Stripe
5
5
  module V2
6
- module Core
7
- class ApprovalRequestExecuteParams < ::Stripe::RequestParams; end
6
+ module Signals
7
+ class PaymentRetrySignalRetrieveParams < ::Stripe::RequestParams; end
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Tax
7
+ class IntegrationConfigurationRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,25 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Tax
7
+ class IntegrationConfigurationUpdateParams < ::Stripe::RequestParams
8
+ class CheckoutSessions < ::Stripe::RequestParams
9
+ # Controls the default value of automatic_tax[enabled] on new Checkout Sessions.
10
+ attr_accessor :automatic_tax_default_value
11
+
12
+ def initialize(automatic_tax_default_value: nil)
13
+ @automatic_tax_default_value = automatic_tax_default_value
14
+ end
15
+ end
16
+ # Configuration for Checkout Sessions automatic tax behavior.
17
+ attr_accessor :checkout_sessions
18
+
19
+ def initialize(checkout_sessions: nil)
20
+ @checkout_sessions = checkout_sessions
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end